summaryrefslogtreecommitdiff
path: root/test/unistd/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-11-15 10:55:31 +0000
committerEric Andersen <andersen@codepoet.org>2002-11-15 10:55:31 +0000
commit2b6476af1373ff21d3a06b9b8d59ccfc8bbda648 (patch)
tree0af29344ff7dde11ea1d81700b06e8846426a97a /test/unistd/Makefile
parent944d7f249baa4a3661f138fd61e0a5e1fe3b1dd8 (diff)
Add in a pread/pwrite test
Diffstat (limited to 'test/unistd/Makefile')
-rw-r--r--test/unistd/Makefile9
1 files changed, 8 insertions, 1 deletions
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)