]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add gettimeofday() to test.
authorNicholas Nethercote <n.nethercote@gmail.com>
Sun, 14 Nov 2004 15:56:32 +0000 (15:56 +0000)
committerNicholas Nethercote <n.nethercote@gmail.com>
Sun, 14 Nov 2004 15:56:32 +0000 (15:56 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2990

memcheck/tests/scalar.c
memcheck/tests/scalar.stderr.exp

index b5e04582ef0722c5bdab6a4f3d6facf5efbcb964..3649522d0b18a86fa51854ecbf0bdcb936eea845 100644 (file)
@@ -315,9 +315,8 @@ int main(void)
  //SY(__NR_getrusage);
 
    // __NR_gettimeofday 78 --> sys_gettimeofday()
-   // XXX: it succeeds when I give it two NULL pointers... kernel bug?
-// GO(__NR_gettimeofday, "2s 2m");
-// SY(__NR_gettimeofday, x0, x0);
+   GO(__NR_gettimeofday, "2s 2m");
+   SY(__NR_gettimeofday, x0, x0+1);
 
    // __NR_settimeofday 79 --> sys_settimeofday()
    GO(__NR_settimeofday, "2s 2m");
index ae3d491db87ecb247469b21e5fcf318265202e14..48848f6d745cc1027089f345ca2007b18c0d7c52 100644 (file)
@@ -846,6 +846,31 @@ Syscall param old_getrlimit(rlim) points to unaddressable byte(s)
    by 0x........: __libc_start_main (...libc...)
    by 0x........: ...
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
+-----------------------------------------------------
+ 78:   __NR_gettimeofday 2s 2m
+-----------------------------------------------------
+
+Syscall param gettimeofday(tv) contains uninitialised byte(s)
+   at 0x........: syscall (in /...libc...)
+   by 0x........: __libc_start_main (...libc...)
+   by 0x........: ...
+
+Syscall param gettimeofday(tz) contains uninitialised byte(s)
+   at 0x........: syscall (in /...libc...)
+   by 0x........: __libc_start_main (...libc...)
+   by 0x........: ...
+
+Syscall param gettimeofday(tv) points to unaddressable byte(s)
+   at 0x........: syscall (in /...libc...)
+   by 0x........: __libc_start_main (...libc...)
+   by 0x........: ...
+ Address 0x........ is not stack'd, malloc'd or (recently) free'd
+
+Syscall param gettimeofday(tz) points to unaddressable byte(s)
+   at 0x........: syscall (in /...libc...)
+   by 0x........: __libc_start_main (...libc...)
+   by 0x........: ...
+ Address 0x........ is not stack'd, malloc'd or (recently) free'd
 -----------------------------------------------------
  79:   __NR_settimeofday 2s 2m
 -----------------------------------------------------