Merged r9741 (make post-syscall more portable) from the DARWIN branch.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9742
This commit is contained in:
Nicholas Nethercote 2009-05-04 01:17:56 +00:00
parent 087255f973
commit 97e628e4be
6 changed files with 5 additions and 18 deletions

View File

@ -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 \

View File

@ -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;

View File

@ -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

View File

@ -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

View File

@ -1 +0,0 @@
PASSED

View File

@ -1 +1,2 @@
prog: post-syscall
vgopts: -q