|
From: <sv...@va...> - 2009-07-23 10:10:38
|
Author: bart
Date: 2009-07-23 11:10:30 +0100 (Thu, 23 Jul 2009)
New Revision: 10554
Log:
Let DRD print a warning at startup that support for Darwin is still considered experimental, and filter out this warning from the regression tests.
Modified:
trunk/drd/drd_main.c
trunk/drd/tests/filter_stderr
Modified: trunk/drd/drd_main.c
===================================================================
--- trunk/drd/drd_main.c 2009-07-23 08:21:23 UTC (rev 10553)
+++ trunk/drd/drd_main.c 2009-07-23 10:10:30 UTC (rev 10554)
@@ -544,8 +544,12 @@
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))
Modified: trunk/drd/tests/filter_stderr
===================================================================
--- trunk/drd/tests/filter_stderr 2009-07-23 08:21:23 UTC (rev 10553)
+++ trunk/drd/tests/filter_stderr 2009-07-23 10:10:30 UTC (rev 10554)
@@ -33,6 +33,9 @@
# (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
|