From 2b6476af1373ff21d3a06b9b8d59ccfc8bbda648 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 15 Nov 2002 10:55:31 +0000 Subject: Add in a pread/pwrite test --- test/unistd/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'test/unistd/Makefile') diff --git a/test/unistd/Makefile b/test/unistd/Makefile index 360392612..b4a959233 100644 --- a/test/unistd/Makefile +++ b/test/unistd/Makefile @@ -21,7 +21,7 @@ include $(TESTDIR)/Rules.mak -TARGETS=fork fork_glibc vfork vfork_glibc getcwd getopt getopt_long +TARGETS=fork fork_glibc vfork vfork_glibc getcwd getopt getopt_long preadwrite all: $(TARGETS) getcwd: getcwd.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC) @@ -93,6 +93,13 @@ getopt_long: getopt_long.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC) ./$@ --add XXX --delete YYY --verbose -@ echo " " +preadwrite: preadwrite.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC) + $(CC) $(CFLAGS) -c $< -o $@.o + $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS) + $(STRIPTOOL) -x -R .note -R .comment $@ + ./$@ + -@ echo " " + clean: rm -f *.[oa] *~ core $(TARGETS) -- cgit v1.2.3