]> granicus.if.org Git - strace/commitdiff
tests: rename unix-pair-send-recv to unix-pair-sendto-recvfrom
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 19 Jul 2016 00:00:10 +0000 (00:00 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 19 Jul 2016 17:46:33 +0000 (17:46 +0000)
* dumpio.expected: Rename to unix-pair-sendto-recvfrom.expected.
* dumpio.test: Rename to unix-pair-sendto-recvfrom.test.
* unix-pair-send-recv.c: Rename to unix-pair-sendto-recvfrom.c
* .gitignore: Rename unix-pair-send-recv to unix-pair-sendto-recvfrom.
* Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add unix-pair-sendto-recvfrom.test.
(MISC_TESTS): Remove dumpio.test.
(EXTRA_DIST): Rename dumpio.expected
to unix-pair-sendto-recvfrom.expected.

tests/.gitignore
tests/Makefile.am
tests/dumpio.test [deleted file]
tests/unix-pair-sendto-recvfrom.c [moved from tests/unix-pair-send-recv.c with 97% similarity]
tests/unix-pair-sendto-recvfrom.expected [moved from tests/dumpio.expected with 100% similarity]
tests/unix-pair-sendto-recvfrom.test [new file with mode: 0755]

index cf262bd49130a0eb866c1ba95a44c858a90f660a..68d2f3be63bb1ee8a1b859e18bb1b9fcf995407b 100644 (file)
@@ -282,7 +282,7 @@ umovestr
 umovestr2
 umovestr3
 uname
-unix-pair-send-recv
+unix-pair-sendto-recvfrom
 unlink
 unlinkat
 userfaultfd
index d507495d9360f4035fd34eef213e33086f490010..18b08f10fc5cb0790b73d7aad164376d88c64ecf 100644 (file)
@@ -338,7 +338,7 @@ check_PROGRAMS = \
        umovestr2 \
        umovestr3 \
        uname \
-       unix-pair-send-recv \
+       unix-pair-sendto-recvfrom \
        unlink \
        unlinkat \
        userfaultfd \
@@ -656,6 +656,7 @@ DECODER_TESTS = \
        umovestr2.test \
        umovestr3.test \
        uname.test \
+       unix-pair-sendto-recvfrom.test \
        unlink.test \
        unlinkat.test \
        userfaultfd.test \
@@ -686,7 +687,6 @@ MISC_TESTS = \
        detach-running.test \
        detach-sleeping.test \
        detach-stopped.test \
-       dumpio.test \
        filter-unavailable.test \
        fork-f.test \
        ksysent.test \
@@ -721,7 +721,6 @@ AM_TEST_LOG_FLAGS = STRACE_ARCH=$(ARCH) $(srcdir)/run.sh
 EXTRA_DIST = init.sh run.sh match.awk \
             caps.awk \
             count-f.expected \
-            dumpio.expected \
             eventfd.expected \
             fanotify_mark.expected \
             filter-unavailable.expected \
@@ -759,6 +758,7 @@ EXTRA_DIST = init.sh run.sh match.awk \
             sun_path.expected \
             uio.expected \
             umovestr.expected \
+            unix-pair-sendto-recvfrom.expected \
             xchownx.c \
             xgetrlimit.c \
             xselect.c \
diff --git a/tests/dumpio.test b/tests/dumpio.test
deleted file mode 100755 (executable)
index 8d272fc..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/sh
-
-# Check how dumpio works.
-
-. "${srcdir=.}/init.sh"
-
-run_prog ./unix-pair-send-recv abcdefghijklmnopqrstuvwxyz
-run_strace -esignal=none -esendto,recvfrom -eread=0 -ewrite=0 $args
-match_diff
-
-exit 0
similarity index 97%
rename from tests/unix-pair-send-recv.c
rename to tests/unix-pair-sendto-recvfrom.c
index f7d9c39d6fc201d6f7f7cbbb0ea64fa8f912b5c3..cea382c9ef90b0d15a2112362a063368bce4794b 100644 (file)
@@ -1,4 +1,6 @@
 /*
+ * Check decoding and dumping of sendto and recvfrom syscalls.
+ *
  * Copyright (c) 2015-2016 Dmitry V. Levin <ldv@altlinux.org>
  * All rights reserved.
  *
diff --git a/tests/unix-pair-sendto-recvfrom.test b/tests/unix-pair-sendto-recvfrom.test
new file mode 100755 (executable)
index 0000000..21afe23
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# Check decoding and dumping of sendto and recvfrom syscalls.
+
+. "${srcdir=.}/init.sh"
+
+run_prog ./unix-pair-sendto-recvfrom abcdefghijklmnopqrstuvwxyz
+run_strace -esignal=none -esendto,recvfrom -eread=0 -ewrite=0 $args
+match_diff
+
+exit 0