From 26361b37e9ffe701ea465bc37d4fab90f144eb4c Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Tue, 16 Nov 2004 18:20:35 +0000 Subject: [PATCH] account for restart_syscall git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3028 --- memcheck/tests/scalar.c | 5 +++-- memcheck/tests/scalar.stderr.exp | 7 +++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/memcheck/tests/scalar.c b/memcheck/tests/scalar.c index 0b0796526..0f0b8956f 100644 --- a/memcheck/tests/scalar.c +++ b/memcheck/tests/scalar.c @@ -23,8 +23,9 @@ int main(void) // All __NR_xxx numbers are taken from x86 - // __NR_restart_syscall 0 XXX ??? - // (see below) + // __NR_restart_syscall 0 // XXX: not yet handled, perhaps should be... + GO(__NR_restart_syscall, "n/a"); + //SY(__NR_restart_syscall); // (Not yet handled by Valgrind) FAIL; // __NR_exit 1 GO(__NR_exit, "below"); diff --git a/memcheck/tests/scalar.stderr.exp b/memcheck/tests/scalar.stderr.exp index 9f69e2e57..7f2adde00 100644 --- a/memcheck/tests/scalar.stderr.exp +++ b/memcheck/tests/scalar.stderr.exp @@ -1,3 +1,6 @@ +----------------------------------------------------- + 0:__NR_restart_syscall n/a +----------------------------------------------------- ----------------------------------------------------- 1: __NR_exit below ----------------------------------------------------- @@ -2685,14 +2688,14 @@ Syscall param sigaltstack(ss) points to unaddressable byte(s) by 0x........: __libc_start_main (...libc...) by 0x........: ... Address 0x........ is 0 bytes inside a block of size 12 client-defined - at 0x........: main (scalar.c:810) + at 0x........: main (scalar.c:811) Syscall param sigaltstack(oss) points to unaddressable byte(s) at 0x........: syscall (in /...libc...) by 0x........: __libc_start_main (...libc...) by 0x........: ... Address 0x........ is 0 bytes inside a block of size 12 client-defined - at 0x........: main (scalar.c:810) + at 0x........: main (scalar.c:811) ----------------------------------------------------- 187: __NR_sendfile 4s 1m -----------------------------------------------------