coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] tests: work around F17-valgrind sort-stale-thread-mem failure


From: Jim Meyering
Subject: [PATCH] tests: work around F17-valgrind sort-stale-thread-mem failure
Date: Mon, 26 Mar 2012 14:06:25 +0200

FYI, while going through the release procedure, I found that
one of the very expensive tests failed on Fedora 17 beta.
With this, all tests pass:

>From cd65eb97987dc75cd3a7cf88a75544cf2854d870 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Mon, 26 Mar 2012 13:52:58 +0200
Subject: [PATCH] tests: work around F17-valgrind sort-stale-thread-mem
 failure

* tests/misc/sort-stale-thread-mem: Skip upon known failure.
---
 tests/misc/sort-stale-thread-mem |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tests/misc/sort-stale-thread-mem b/tests/misc/sort-stale-thread-mem
index 55fd139..78d1699 100755
--- a/tests/misc/sort-stale-thread-mem
+++ b/tests/misc/sort-stale-thread-mem
@@ -33,6 +33,13 @@ grep '^#define HAVE_PTHREAD_T 1' "$CONFIG_HEADER" > 
/dev/null ||
   seq -f %-98f 10000 | shuf > in ||
   framework_failure_

+# On Fedora-17-beta (valgrind-3.7.0-2.fc17.x86_64), this evokes two
+# "Conditional jump or move depends on uninitialised value(s)" errors,
+# each originating from _dl_start.
+# FIXME: change this to a framework_failure_ after release.
+valgrind --quiet --error-exitcode=3 sort --version > /dev/null ||
+  skip_ 'valgrind fails for trivial sort invocation'
+
 # With the bug, 'sort' would fail under valgrind about half the time,
 # on some circa-2010 multicore Linux platforms.  Run the test 100 times
 # so that the probability of missing the bug should be about 1 in
--
1.7.9.3



reply via email to

[Prev in Thread] Current Thread [Next in Thread]