diff --git a/memcheck/tests/Makefile.am b/memcheck/tests/Makefile.am index e83633d83..cc9766899 100644 --- a/memcheck/tests/Makefile.am +++ b/memcheck/tests/Makefile.am @@ -128,7 +128,7 @@ EXTRA_DIST = $(noinst_SCRIPTS) \ pipe.stderr.exp pipe.vgtest \ pointer-trace.vgtest \ pointer-trace.stderr.exp \ - post-syscall.stderr.exp post-syscall.stdout.exp post-syscall.vgtest \ + post-syscall.stderr.exp post-syscall.vgtest \ realloc1.stderr.exp realloc1.vgtest \ realloc2.stderr.exp realloc2.vgtest \ realloc3.stderr.exp realloc3.vgtest \ diff --git a/memcheck/tests/post-syscall.c b/memcheck/tests/post-syscall.c index cab480051..6fb2bfc6c 100644 --- a/memcheck/tests/post-syscall.c +++ b/memcheck/tests/post-syscall.c @@ -29,10 +29,10 @@ int main() ret = nanosleep(&req, &rem); if (ret != -1 || errno != EINTR) { - printf("FAILED: expected nanosleep to be interrupted\n"); + fprintf(stderr, "FAILED: expected nanosleep to be interrupted\n"); } else { VALGRIND_CHECK_VALUE_IS_DEFINED(rem); - printf("PASSED\n"); /* assuming CHECK_VALUE_IS_DEFINED doesn't print anything */ + fprintf(stderr, "PASSED\n"); /* assuming CHECK_VALUE_IS_DEFINED doesn't print anything */ } return 0; diff --git a/memcheck/tests/post-syscall.stderr.exp b/memcheck/tests/post-syscall.stderr.exp index c4aa6f04f..53cdf1e93 100644 --- a/memcheck/tests/post-syscall.stderr.exp +++ b/memcheck/tests/post-syscall.stderr.exp @@ -1,7 +1 @@ - - -ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) -malloc/free: in use at exit: 0 bytes in 0 blocks. -malloc/free: 0 allocs, 0 frees, 0 bytes allocated. -For a detailed leak analysis, rerun with: --leak-check=yes -For counts of detected errors, rerun with: -v +PASSED diff --git a/memcheck/tests/post-syscall.stderr.exp2 b/memcheck/tests/post-syscall.stderr.exp2 deleted file mode 100644 index 4944bba7f..000000000 --- a/memcheck/tests/post-syscall.stderr.exp2 +++ /dev/null @@ -1,7 +0,0 @@ - - -ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) -malloc/free: in use at exit: 0 bytes in 0 blocks. -malloc/free: 1 allocs, 1 frees, 24 bytes allocated. -For a detailed leak analysis, rerun with: --leak-check=yes -For counts of detected errors, rerun with: -v diff --git a/memcheck/tests/post-syscall.stdout.exp b/memcheck/tests/post-syscall.stdout.exp deleted file mode 100644 index 53cdf1e93..000000000 --- a/memcheck/tests/post-syscall.stdout.exp +++ /dev/null @@ -1 +0,0 @@ -PASSED diff --git a/memcheck/tests/post-syscall.vgtest b/memcheck/tests/post-syscall.vgtest index ef6278b35..47db3ec4e 100644 --- a/memcheck/tests/post-syscall.vgtest +++ b/memcheck/tests/post-syscall.vgtest @@ -1 +1,2 @@ prog: post-syscall +vgopts: -q