diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2018-06-01 01:46:06 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2018-06-01 01:46:06 +0000 |
commit | 3160ea8999f553544c34f0991223f08c01fe59b9 (patch) | |
tree | 3ee62ade869cdee53fc90f0b64f9493b79c74adb /tests/fcntl64.c | |
parent | da78779d37e5805dc4b2629c11c953f552bf2258 (diff) | |
download | strace-3160ea8999f553544c34f0991223f08c01fe59b9.tar.gz |
tests: move F_OWNER_* tests to fcntl-common.c
This change enables F_OWNER_* tests for fcntl64 as well.
* tests/fcntl.c: Move main, [TEST_FLOCK64_EINVAL],
and [TEST_F_OWNER_EX] ...
* tests/fcntl-common.c: ... here.
(test_flock64): New prototype.
* tests/fcntl64.c (main): Remove.
Diffstat (limited to 'tests/fcntl64.c')
-rw-r--r-- | tests/fcntl64.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/tests/fcntl64.c b/tests/fcntl64.c index 9897edb5a..34cee7b3e 100644 --- a/tests/fcntl64.c +++ b/tests/fcntl64.c @@ -35,8 +35,6 @@ # define TEST_SYSCALL_STR "fcntl64" # include "fcntl-common.c" -# define TEST_FLOCK64_EINVAL(cmd) test_flock64_einval(cmd, #cmd) - static void test_flock64_einval(const int cmd, const char *name) { @@ -84,17 +82,6 @@ test_flock64(void) TEST_SYSCALL_STR, FILE_LEN); } -int -main(void) -{ - create_sample(); - test_flock(); - test_flock64(); - - puts("+++ exited with 0 +++"); - return 0; -} - #else SKIP_MAIN_UNDEFINED("__NR_fcntl64") |