From 814bc89d4635f101b2c0077598f31aad95ed15b7 Mon Sep 17 00:00:00 2001 From: fche Date: Sat, 12 Aug 2006 05:13:09 +0000 Subject: 2006-08-12 Frank Ch. Eigler * configure.ac, Makefile.am: Descend into testsuite/ directory. Remove local test logic. * configure, Makefile.in: Regenerated. * runtest.sh: Not yet removed. * HACKING: Update for new testsuite layout. 2006-08-12 Frank Ch. Eigler * all: Reorganized old pass-1..4 tests one dejagnu bucket. Moved over old pass-5 tests, except for disabled syscalls tests. * Makefile (installcheck): New target for running pass-1..5 tests against installed systemtap. --- testsuite/systemtap.syscall/access.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 testsuite/systemtap.syscall/access.c (limited to 'testsuite/systemtap.syscall/access.c') diff --git a/testsuite/systemtap.syscall/access.c b/testsuite/systemtap.syscall/access.c new file mode 100644 index 00000000..065206b7 --- /dev/null +++ b/testsuite/systemtap.syscall/access.c @@ -0,0 +1,34 @@ +/* COVERAGE: access */ +#include +#include +#include +#include +#include + + +int main() +{ + int fd1; + + fd1 = creat("foobar1",S_IREAD|S_IWRITE); + + access("foobar1", F_OK); + // access ("foobar1", F_OK) = 0 + + access("foobar1", R_OK); + // access ("foobar1", R_OK) = 0 + + access("foobar1", W_OK); + // access ("foobar1", W_OK) = 0 + + access("foobar1", X_OK); + // access ("foobar1", X_OK) = -NNNN (EACCES) + + access("foobar1", R_OK|W_OK); + // access ("foobar1", W_OK |R_OK) = 0 + + access("foobar1", R_OK|W_OK|X_OK); + // access ("foobar1", X_OK |W_OK |R_OK) = -NNNN (EACCES) + + return 0; +} -- cgit