]> sourceware.org Git - systemtap.git/commitdiff
Updated some expected output in several syscall tests.
authorDavid Smith <dsmith@redhat.com>
Wed, 26 Mar 2014 21:00:51 +0000 (16:00 -0500)
committerDavid Smith <dsmith@redhat.com>
Wed, 26 Mar 2014 21:00:51 +0000 (16:00 -0500)
* testsuite/systemtap.syscall/bind.c: Update expected test output.
* testsuite/systemtap.syscall/getitimer.c: Ditto.
* testsuite/systemtap.syscall/getrusage.c: Ditto.
* testsuite/systemtap.syscall/sendfile.c: Ditto.
* testsuite/systemtap.syscall/setitimer.c: Ditto.
* testsuite/systemtap.syscall/wait4.c: Ditto.

testsuite/systemtap.syscall/bind.c
testsuite/systemtap.syscall/getitimer.c
testsuite/systemtap.syscall/getrusage.c
testsuite/systemtap.syscall/sendfile.c
testsuite/systemtap.syscall/setitimer.c
testsuite/systemtap.syscall/wait4.c

index 46739cc08734a45739da55f1360f95370833608d..8832726f44f8e2f9e8ff2b6be58371bf16f118a9 100644 (file)
@@ -60,7 +60,7 @@ int main()
   //staptest// bind (NNNN, {AF_INET, 0.0.0.0, 0}, 16) = 0
 
   bind(sock_local, (struct sockaddr *)&sun1, sizeof(sun1));
-  //staptest// bind (NNNN, {AF_UNIX, \.}, 110) = -NNNN (EADDRINUSE)
+  //staptest// bind (NNNN, {AF_UNIX, "\."}, 110) = -NNNN (EADDRINUSE)
 
   bind(sock_inet_stream, (struct sockaddr *)&sin3, sizeof(sin3));
   //staptest// bind (NNNN, {AF_INET, 10.255.254.253, 0}, 16) = -NNNN (EADDRNOTAVAIL)
index de2f29d26a76ddcbc89191763049c67fdfd60800..e44ef1a3f2fd29d6eb2225a28b350858f2cc1779 100644 (file)
@@ -19,7 +19,11 @@ int main()
     //staptest// getitimer (BAD VALUE: -1, XXXX) = -NNNN (EINVAL)
 
     getitimer(ITIMER_REAL, (struct itimerval *)-1);
+#ifdef __s390__
+    //staptest// getitimer (ITIMER_REAL, 0x[7]?[f]+) = -NNNN (EFAULT)
+#else
     //staptest// getitimer (ITIMER_REAL, 0x[f]+) = -NNNN (EFAULT)
+#endif
 
     return 0;
 }
index 4a74b558ba5d628e9c862ddcf3b69eb3598f49b7..701275521fae6d74e4c1e1a744f13c26a46f235c 100644 (file)
@@ -26,7 +26,11 @@ int main()
     //staptest// getrusage (UNKNOWN VALUE: -2, XXXX) = -NNNN (EINVAL)
 
     getrusage(RUSAGE_SELF, (struct rusage *)-1);
+#ifdef __s390__
+    //staptest// getrusage (RUSAGE_SELF, 0x[7]?[f]+) = -NNNN (EFAULT)
+#else
     //staptest// getrusage (RUSAGE_SELF, 0x[f]+) = -NNNN (EFAULT)
+#endif
 
     return 0;
 }
index 3427419231163b9e675cfa2285f9ef27b120fc21..f0db444b9074c173084608dabfc3a1f058fc2886 100644 (file)
@@ -45,18 +45,20 @@ int main ()
        //staptest// sendfile (NNNN, -1, XXXX, 22) = -NNNN (EBADF)
 
        sendfile (write_fd, read_fd, (off_t *)-1, sizeof(buff));
+#ifdef __s390__
+       //staptest// sendfile (NNNN, NNNN, 0x[7]?[f]+, 22) = -NNNN (EFAULT)
+#else
        //staptest// sendfile (NNNN, NNNN, 0x[f]+, 22) = -NNNN (EFAULT)
+#endif
 
        sendfile (write_fd, read_fd, &offset, -1);
        // The 'count' argument is a size_t, which is an unsigned
        // long, whose size varies by platform. (The return value
        // varies here as well, so we'll just ignore it.)
-#if ULONG_MAX == 0xffffffffUL
-       //staptest// sendfile (NNNN, NNNN, XXXX, 4294967295)
-#elif ULONG_MAX == 0xffffffffffffffffUL
+#if __WORDSIZE == 64
        //staptest// sendfile (NNNN, NNNN, XXXX, 18446744073709551615)
 #else
-#error unhandled ULONG_MAX value
+       //staptest// sendfile (NNNN, NNNN, XXXX, 4294967295)
 #endif
        close (read_fd);
        close (write_fd);
index b86321bdb9a9b763fba3f34273eddb01ec2783b9..d17428313605d1f926d0c7325bc6b31cd9619d7a 100644 (file)
@@ -21,7 +21,11 @@ int main()
     //staptest// setitimer (ITIMER_VIRTUAL, UNKNOWN, XXXX) = -NNNN (EFAULT)
 
     setitimer(ITIMER_PROF, &value, (struct itimerval *)-1);
+#ifdef __s390__
+    //staptest// setitimer (ITIMER_PROF, \[0\.000000,30\.000000\], 0x[7]?[f]+) = -NNNN (EFAULT)
+#else
     //staptest// setitimer (ITIMER_PROF, \[0\.000000,30\.000000\], 0x[f]+) = -NNNN (EFAULT)
+#endif
 
     return 0;
 }
index ad797d77c30347883a0c4625e4570ecd7541eb69..295f8e38e3e82e611b25353f8958d6c32b70c6f1 100644 (file)
@@ -47,7 +47,11 @@ main()
        exit(0);
     }
     wait4(child, (int *)-1, 0, NULL);
+#ifdef __s390__
+    //staptest// wait4 (NNNN, 0x[7]?[f]+, 0, 0x0) = -NNNN (EFAULT)
+#else
     //staptest// wait4 (NNNN, 0x[f]+, 0, 0x0) = -NNNN (EFAULT)
+#endif
 
     // Just in case the failing wait4() call above didn't clean up...
     wait4(child, 0, 0, NULL);
@@ -93,7 +97,11 @@ main()
     }
 
     wait4(child, NULL, 0, (struct rusage *)-1);
+#ifdef __s390__
+    //staptest// wait4 (NNNN, 0x0, 0, 0x[7]?[f]+) = -NNNN (EFAULT)
+#else
     //staptest// wait4 (NNNN, 0x0, 0, 0x[f]+) = -NNNN (EFAULT)
+#endif
 
     // Just in case the failing wait4() call above didn't clean up...
     wait4(child, 0, 0, NULL);
This page took 0.091168 seconds and 5 git commands to generate.