]> granicus.if.org Git - strace/commitdiff
tests: rename struct_flock.c to fcntl-common.c
authorDmitry V. Levin <ldv@altlinux.org>
Fri, 1 Jun 2018 01:46:06 +0000 (01:46 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 1 Jun 2018 01:46:06 +0000 (01:46 +0000)
It is not limited to struct flock, more fcntl tests are going to land
in this file.

* tests/struct_flock.c: Rename to fcntl-common.c.
* tests/Makefile.am (EXTRA_DIST): Rename struct_flock.c
to fcntl-common.c.
* tests/fcntl.c: Likewise.
* tests/fcntl64.c: Likewise.

tests/Makefile.am
tests/fcntl-common.c [moved from tests/struct_flock.c with 100% similarity]
tests/fcntl.c
tests/fcntl64.c

index 8a1ba9d6195247f9f34899d88010baac689da4f2..17a823367de20a0174f42d14ef2a583c86c925f7 100644 (file)
@@ -367,6 +367,7 @@ EXTRA_DIST = \
        count-f.expected \
        eventfd.expected \
        fadvise.h \
+       fcntl-common.c \
        filter-unavailable.expected \
        fstatat.c \
        fstatx.c \
@@ -412,7 +413,6 @@ EXTRA_DIST = \
        strace-k.test \
        strace-r.expected \
        strace.supp \
-       struct_flock.c \
        sun_path.expected \
        syntax.sh \
        trace_fstat.in \
similarity index 100%
rename from tests/struct_flock.c
rename to tests/fcntl-common.c
index 45c20d9d363d23bd2a79476fb95d2c7f16e86d15..15757694729e4364b73e6bd8fd737b1fc9e8559e 100644 (file)
@@ -33,7 +33,7 @@
 
 # define TEST_SYSCALL_NR __NR_fcntl
 # define TEST_SYSCALL_STR "fcntl"
-# include "struct_flock.c"
+# include "fcntl-common.c"
 
 # define TEST_FLOCK64_EINVAL(cmd) test_flock64_einval(cmd, #cmd)
 
index 068956edfc2b46ad052dbabb8475cd6c3621cfad..9897edb5a43e4208bb51725c0e3cc03ae45fc519 100644 (file)
@@ -33,7 +33,7 @@
 
 # define TEST_SYSCALL_NR __NR_fcntl64
 # define TEST_SYSCALL_STR "fcntl64"
-# include "struct_flock.c"
+# include "fcntl-common.c"
 
 # define TEST_FLOCK64_EINVAL(cmd) test_flock64_einval(cmd, #cmd)