]> granicus.if.org Git - strace/commitdiff
tests: do not check decoding of setitimer syscall outside xetitimer.test
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 15 Mar 2017 00:00:29 +0000 (00:00 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 15 Mar 2017 00:00:29 +0000 (00:00 +0000)
xetitimer.test already implements a comprehensive test of setitimer
syscall parser, no need to duplicate its parts in other tests.

* tests/clock_nanosleep.c (main): Remove setitimer expected output.
* tests/nanosleep.c (main): Likewise.
* tests/clock_nanosleep.test: Remove setitimer from the trace set.
* tests/nanosleep.test: Likewise.

tests/clock_nanosleep.c
tests/clock_nanosleep.test
tests/nanosleep.c
tests/nanosleep.test

index 98407d7e8cc8b0f12dfa4c9e637d475e32d408a1..dacef441f71236eee0a83f3320450eb901d0ecd4 100644 (file)
@@ -1,4 +1,6 @@
 /*
+ * Check decoding of clock_nanosleep and clock_gettime syscalls.
+ *
  * Copyright (c) 2015-2016 Dmitry V. Levin <ldv@altlinux.org>
  * All rights reserved.
  *
@@ -89,12 +91,6 @@ main(void)
 
        if (setitimer(ITIMER_REAL, &itv, NULL))
                perror_msg_and_skip("setitimer");
-       printf("setitimer(ITIMER_REAL, {it_interval={tv_sec=%jd, tv_usec=%jd}"
-              ", it_value={tv_sec=%jd, tv_usec=%jd}}, NULL) = 0\n",
-              (intmax_t) itv.it_interval.tv_sec,
-              (intmax_t) itv.it_interval.tv_usec,
-              (intmax_t) itv.it_value.tv_sec,
-              (intmax_t) itv.it_value.tv_usec);
 
        --req.ts.tv_nsec;
        assert(syscall(__NR_clock_nanosleep, CLOCK_REALTIME, 0,
index ec434a60ddce9ae45257abe66b5b1b1180291f1c..b7619890ac227bde813a13f969dcac51e8f7b4e1 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# Check clock_nanosleep, clock_gettime, and setitimer syscalls decoding.
+# Check decoding of clock_nanosleep and clock_gettime syscalls.
 
 . "${srcdir=.}/init.sh"
-run_strace_match_diff -e trace=clock_nanosleep,clock_gettime,setitimer
+run_strace_match_diff -e trace=clock_nanosleep,clock_gettime
index 9f0e626f14cb83f78620a0d9e490765c2d0bbef3..647f2d45a44a0aeb1073fe4ef1df8d03e6e2e477 100644 (file)
@@ -1,4 +1,6 @@
 /*
+ * Check decoding of nanosleep syscall.
+ *
  * Copyright (c) 2015-2016 Dmitry V. Levin <ldv@altlinux.org>
  * All rights reserved.
  *
@@ -78,12 +80,6 @@ main(void)
 
        if (setitimer(ITIMER_REAL, &itv, NULL))
                perror_msg_and_skip("setitimer");
-       printf("setitimer(ITIMER_REAL, {it_interval={tv_sec=%jd, tv_usec=%jd}"
-              ", it_value={tv_sec=%jd, tv_usec=%jd}}, NULL) = 0\n",
-              (intmax_t) itv.it_interval.tv_sec,
-              (intmax_t) itv.it_interval.tv_usec,
-              (intmax_t) itv.it_value.tv_sec,
-              (intmax_t) itv.it_value.tv_usec);
 
        req.ts.tv_nsec = 999999999;
        assert(nanosleep(&req.ts, &rem.ts) == -1);
index 055a8dcd795da868e871fe87287c8de619032a34..4e59a6ae9a89519645c5385123af89eb325d1435 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# Check nanosleep and setitimer syscalls decoding.
+# Check decoding of nanosleep syscall.
 
 . "${srcdir=.}/init.sh"
-run_strace_match_diff -a20 -e trace=nanosleep,setitimer
+run_strace_match_diff -a20