summaryrefslogtreecommitdiff
path: root/tests/lstat64.c
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2015-12-05 00:03:02 +0000
committerDmitry V. Levin <ldv@altlinux.org>2015-12-05 00:03:02 +0000
commit38e37686f20a7ed354f4f8d1eb5dcbf822c4d8bd (patch)
treeadc943f1a9e44c0c5609ebc27925dd8d2b343c00 /tests/lstat64.c
parentc863827ddbe5a89a393e45c92eb05ce307779151 (diff)
downloadstrace-38e37686f20a7ed354f4f8d1eb5dcbf822c4d8bd.tar.gz
tests: add lstat.test and lstat64.test
* tests/lstat.c: New file. * tests/lstat64.c: Likewise. * tests/lstatx.c: Likewise. * tests/lstat.test: New test. * tests/lstat64.test: Likewise. * tests/Makefile.am (check_PROGRAMS): Add lstat and lstat64. (lstat64_CFLAGS): Define. (TESTS): Add lstat.test and lstat64.test. (EXTRA_DIST): Add lstatx.c. * tests/.gitignore: Add lstat and lstat64.
Diffstat (limited to 'tests/lstat64.c')
-rw-r--r--tests/lstat64.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/lstat64.c b/tests/lstat64.c
new file mode 100644
index 000000000..4c0713f8c
--- /dev/null
+++ b/tests/lstat64.c
@@ -0,0 +1,14 @@
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include <sys/syscall.h>
+
+#undef TEST_SYSCALL_NAME
+#ifdef __NR_lstat64
+# define TEST_SYSCALL_NAME lstat64
+# define STRUCT_STAT struct stat64
+# define SAMPLE_SIZE ((libc_off_t) 43147718418)
+#endif
+
+#include "lstatx.c"