aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/main.c6
-rw-r--r--test/mkfile6
2 files changed, 7 insertions, 5 deletions
diff --git a/test/main.c b/test/main.c
index 1a60b42..48610da 100644
--- a/test/main.c
+++ b/test/main.c
@@ -1,6 +1,6 @@
#include <u.h>
#include <libc.h>
-#include "../../obj.h"
+#include "../obj.h"
static char fd0[] = "/fd/0";
@@ -26,10 +26,12 @@ main(int argc, char *argv[])
usage();
if(argc == 1)
f = argv[0];
+
obj = objparse(f);
if(obj == nil)
sysfatal("objparse: %r");
+
print("%O\n", obj);
objfree(obj);
- exits(0);
+ exits(nil);
}
diff --git a/test/mkfile b/test/mkfile
index 2f4895c..d000d3c 100644
--- a/test/mkfile
+++ b/test/mkfile
@@ -5,14 +5,14 @@ TARG=objtest
OFILES=\
main.$O\
-HFILES=../../obj.h
+HFILES=../obj.h
LIB=\
- ../../libobj.a$O\
+ ../libobj.a$O\
</sys/src/cmd/mkone
-../../libobj.a$O:
+../libobj.a$O:
cd ..
mk install