diff --git a/test_programs/GNUmakefile.68k b/test_programs/GNUmakefile.68k index a7a325e..1cee152 100644 --- a/test_programs/GNUmakefile.68k +++ b/test_programs/GNUmakefile.68k @@ -1,5 +1,5 @@ # -# $Id: GNUmakefile.68k,v 1.12 2006-04-18 08:29:46 obarthel Exp $ +# $Id: GNUmakefile.68k,v 1.13 2006-08-02 09:22:38 obarthel Exp $ # # :ts=8 # @@ -49,13 +49,13 @@ LIBS = -lm -lc -lgcc all: test fgets_test iotest sscanf_test printf_test sprintf_test \ stack_size_test translate_test strtok_test uname simple \ fstat_stdout_test simple_sprintf date_test sscanf_64 factorial \ - setlocale rand + execvp_test setlocale rand clean: $(DELETE) #?.o #?.map test fgets_test iotest sscanf_test printf_test \ sprintf_test stack_size_test translate_test strtok_test uname \ simple fstat_stdout_test simple_sprintf date_test sscanf_64 \ - factorial setlocale rand + factorial execvp_test setlocale rand ############################################################################## @@ -127,6 +127,10 @@ factorial : factorial.o @echo "Linking $@" $(CC) $(CFLAGS) -o $@ factorial.o $(LIBS) -Wl,--cref,-M,-Map=$@.map +execvp_test : execvp_test.o + @echo "Linking $@" + $(CC) $(CFLAGS) -o $@ execvp_test.o -lunix $(LIBS) -Wl,--cref,-M,-Map=$@.map + rand : rand.o @echo "Linking $@" $(CC) $(CFLAGS) -o $@ rand.o $(LIBS) -Wl,--cref,-M,-Map=$@.map diff --git a/test_programs/execvp_test.c b/test_programs/execvp_test.c new file mode 100644 index 0000000..c720e9d --- /dev/null +++ b/test_programs/execvp_test.c @@ -0,0 +1,16 @@ +/* + * $Id: execvp_test.c,v 1.1 2006-08-02 09:22:38 obarthel Exp $ + * + * :ts=4 + */ + +#include + +int +main(int argc,char ** argv) +{ + if(argc > 1) + execvp(argv[1],&argv[2]); + + return(0); +}