aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2023-11-11 09:16:04 +0000
committerrodri <rgl@antares-labs.eu>2023-11-11 09:16:04 +0000
commitb86030fbaa1c1522f1d4f996ad763e2c3880bac9 (patch)
treea3bc47d02672fe15aabfb7ed34599def13463e8a
parent8954159bc44bcc91f25fb4395c86461d4d32f8ae (diff)
downloadlibobj-b86030fbaa1c1522f1d4f996ad763e2c3880bac9.tar.gz
libobj-b86030fbaa1c1522f1d4f996ad763e2c3880bac9.tar.bz2
libobj-b86030fbaa1c1522f1d4f996ad763e2c3880bac9.zip
fix paths in the test program.
-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