]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Make scalar.c slightly more robust against certain kinds of failures.
authorNicholas Nethercote <njn@valgrind.org>
Wed, 16 Mar 2005 03:29:08 +0000 (03:29 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Wed, 16 Mar 2005 03:29:08 +0000 (03:29 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3372

memcheck/tests/scalar.c

index 882f24dbffc66148b8038011fe726ef1ce7b7f6f..cbd1313148ec7535f6eb6fd4443a3a8430dd13d9 100644 (file)
@@ -317,7 +317,7 @@ int main(void)
 
    // __NR_sigaction 67
    GO(__NR_sigaction, "3s 2m");
-   SY(__NR_sigaction, x0, x0+1, x0+1); FAIL;
+   SY(__NR_sigaction, x0, x0, x0+1); FAIL;
 
    // __NR_sgetmask 68 sys_sgetmask()
    GO(__NR_sgetmask, "n/a");
@@ -1028,7 +1028,7 @@ int main(void)
 
    // __NR_flistxattr 234
    GO(__NR_flistxattr, "3s 1m");
-   SY(__NR_flistxattr, x0-1, x0, x0+1); FAILx(EFAULT); /* kernel returns EBADF, but both seem correct */
+   SY(__NR_flistxattr, x0-1, x0, x0+1); FAIL; /* kernel returns EBADF, but both seem correct */
 
    // __NR_removexattr 235
    GO(__NR_removexattr, "2s 2m");