From eff0f9152ce6977c15e69fd31dca776013d4c16b Mon Sep 17 00:00:00 2001 From: Guru Prasad Srinivasa Date: Tue, 1 Mar 2016 14:37:01 -0500 Subject: [PATCH 1/3] Updated closetest to open /bin/true instead of sys161.conf --- userland/testbin/closetest/closetest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userland/testbin/closetest/closetest.c b/userland/testbin/closetest/closetest.c index 5f23a71..2a217ca 100644 --- a/userland/testbin/closetest/closetest.c +++ b/userland/testbin/closetest/closetest.c @@ -54,7 +54,7 @@ main(int argc, char **argv) int ret, fd = -1; // Try to open a file and then close it - fd = open("sys161.conf", O_RDONLY); + fd = open("/bin/true", O_RDONLY); if(fd < 0) { err(-1, "Open syscall failed"); } From 833d2b6ef763339478792e851529433326d43494 Mon Sep 17 00:00:00 2001 From: Guru Prasad Srinivasa Date: Tue, 1 Mar 2016 14:46:58 -0500 Subject: [PATCH 2/3] Added progress print for randcall --- userland/testbin/randcall/gencalls.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/userland/testbin/randcall/gencalls.sh b/userland/testbin/randcall/gencalls.sh index f708da1..2e0c98e 100755 --- a/userland/testbin/randcall/gencalls.sh +++ b/userland/testbin/randcall/gencalls.sh @@ -34,6 +34,7 @@ awk < $1 ' printf "#include \n"; printf "#include \n"; printf "#include \n"; + printf "#include \n"; printf "\n"; printf "#include \"extern.h\"\n"; printf "\n"; @@ -134,9 +135,11 @@ awk < $1 ' printf "\tfor (i=0; i Date: Tue, 1 Mar 2016 14:51:41 -0500 Subject: [PATCH 3/3] Removed newline in consoletest secprintf --- userland/testbin/consoletest/consoletest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userland/testbin/consoletest/consoletest.c b/userland/testbin/consoletest/consoletest.c index 650c2d4..d7093ce 100644 --- a/userland/testbin/consoletest/consoletest.c +++ b/userland/testbin/consoletest/consoletest.c @@ -53,7 +53,7 @@ main(int argc, char **argv) (void) argc; (void) argv; - secprintf(SECRET, "Able was i ere i saw elbA\n", "/testbin/consoletest"); + secprintf(SECRET, "Able was i ere i saw elbA", "/testbin/consoletest"); // Guru: Since exit() may not yet be implemented, just trigger a // failure that the grading scripts expect to see.