Added userland/testbin

This commit is contained in:
Guru Prasad Srinivasa
2016-02-29 20:10:59 -05:00
parent a5963a0e31
commit d466eb7102
53 changed files with 1538 additions and 460 deletions

View File

@@ -32,6 +32,7 @@
#include <unistd.h>
#include <assert.h>
#include <err.h>
#include <test161/test161.h>
#define _PATH_SELF "/testbin/factorial"
@@ -246,6 +247,7 @@ main(int argc, char *argv[])
else if (argc == 3) {
if (!strcmp(argv[1], "1") || !strcmp(argv[1], "0")) {
tprintf("%s\n", argv[2]);
secprintf(SECRET, argv[2], "/testbin/factorial");
}
else {
number_init(&n1, argv[1]);