From b62d6af33a473cbd205e1797f099a351071c9ac3 Mon Sep 17 00:00:00 2001 From: Mikael Asplund Date: Wed, 12 Feb 2020 13:14:55 +0100 Subject: Added test files for lab 3 and 4 --- src/examples/lab4test1.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 src/examples/lab4test1.c (limited to 'src/examples/lab4test1.c') diff --git a/src/examples/lab4test1.c b/src/examples/lab4test1.c new file mode 100755 index 0000000..f64a066 --- /dev/null +++ b/src/examples/lab4test1.c @@ -0,0 +1,21 @@ +#include +#include + +//compile it, copy to the pintos virtual disk an call this program with arguments using the command +// pintos --qemu -- run 'lab4test1 arg1 arg2 arg3' +//if lab 4 is correctly implemented the arguments should be printed to the console +// try it wih different arguments and different number of arguments + +int +main (int argc, char *argv[]) +{ + + for(int i=0;i