]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Let DRD print a warning at startup that support for Darwin is still considered experi...
authorBart Van Assche <bvanassche@acm.org>
Thu, 23 Jul 2009 10:10:30 +0000 (10:10 +0000)
committerBart Van Assche <bvanassche@acm.org>
Thu, 23 Jul 2009 10:10:30 +0000 (10:10 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10554

drd/drd_main.c
drd/tests/filter_stderr

index 3fde8d26c72b01c82d16baffa91ba7ead8e8f15d..b3b370830645557edd546df972b31b639bb8bbab 100644 (file)
@@ -544,8 +544,12 @@ static void drd_thread_finished(ThreadId vg_tid)
 
 static void DRD_(post_clo_init)(void)
 {
-#if !defined(VGO_linux) && !defined(VGO_darwin)
-   VG_(printf)("\nWARNING: DRD has only been tested on Linux and on Darwin.\n\n");
+#if defined(VGO_linux)
+   /* fine */
+#elif defined(VGO_darwin)
+   VG_(printf)("\nWARNING: DRD support for Darwin is still considered as experimental.\n\n");
+#else
+   VG_(printf)("\nWARNING: DRD has not yet been tested on this operating system.\n\n");
 #  endif
 
    if (DRD_(s_var_info))
index 7db91d9614183d69e69419d0870be9910413b923..09652c9cff51665991cc3b5bb46f0c45ca8436cd 100755 (executable)
@@ -33,6 +33,9 @@ sed \
 # (consists of two lines) and also the empty line above it.
 awk 'BEGIN{begin=1} {if ($0 == "More than 100 errors detected.  Subsequent errors") { getline; getline; } else { if (begin) begin = 0; else print last_line; }; last_line = $0; } END { if (! begin) print last_line; }' |
 
+# Remove the message about experimental support for Darwin.
+awk 'BEGIN{begin=1} { if ($0 == "WARNING: DRD support for Darwin is still considered as experimental.") { getline; getline; } else { if (begin) begin = 0; else print last_line; }; last_line = $0; } END { if (! begin) print last_line; }' |
+
 # Anonymise addresses
 $dir/../../tests/filter_addresses