uio.test failure

Lennart Sorensen lsorense at csclub.uwaterloo.ca
Wed Oct 7 22:10:26 UTC 2015


I have been seeing uio.test failing consistently in one build scenario
and finally tracked down the problem.

My build has an extra file handle open when it builds strace, and uio.test
assumes only stdin, stdout and stderr are open at the time of the test.

Simple way to cause the failure:

make check 3<&0

Fixing it seems to be as simple as:

diff -urN strace-4.9.orig/tests/uio.test strace-4.9/tests/uio.test
--- strace-4.9.orig/tests/uio.test      2014-08-11 17:30:01.000000000 +0000
+++ strace-4.9/tests/uio.test   2015-10-07 22:01:39.925996968 +0000
@@ -31,9 +31,9 @@
        }
 }
 
-grep_log 'pread(64)?' '\(3, "\\0\\0\\0\\0", 4, 1004211379570065135\) += 4'
-grep_log 'preadv' '\(3, \[{"\\0\\0\\0\\0", 4}\], 1, 1004211379570065135\) += 4'
-grep_log 'pwrite(64)?' '\(3, "\\0\\0\\0\\0", 4, 1004211379570065135\) += 4'
-grep_log 'pwritev' '\(3, \[{"\\0\\0\\0\\0", 4}\], 1, 1004211379570065135\) += 4'
+grep_log 'pread(64)?' '\([0-9]+, "\\0\\0\\0\\0", 4, 1004211379570065135\) += 4'
+grep_log 'preadv' '\([0-9]+, \[{"\\0\\0\\0\\0", 4}\], 1, 1004211379570065135\) += 4'
+grep_log 'pwrite(64)?' '\([0-9]+, "\\0\\0\\0\\0", 4, 1004211379570065135\) += 4'
+grep_log 'pwritev' '\([0-9]+, \[{"\\0\\0\\0\\0", 4}\], 1, 1004211379570065135\) += 4'
 
 exit 0

-- 
Len Sorensen




More information about the Strace-devel mailing list