diff options
author | rodri <rgl@antares-labs.eu> | 2023-11-11 09:16:04 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2023-11-11 09:16:04 +0000 |
commit | b86030fbaa1c1522f1d4f996ad763e2c3880bac9 (patch) | |
tree | a3bc47d02672fe15aabfb7ed34599def13463e8a /test | |
parent | 8954159bc44bcc91f25fb4395c86461d4d32f8ae (diff) | |
download | libobj-b86030fbaa1c1522f1d4f996ad763e2c3880bac9.tar.gz libobj-b86030fbaa1c1522f1d4f996ad763e2c3880bac9.tar.bz2 libobj-b86030fbaa1c1522f1d4f996ad763e2c3880bac9.zip |
fix paths in the test program.
Diffstat (limited to 'test')
-rw-r--r-- | test/main.c | 6 | ||||
-rw-r--r-- | test/mkfile | 6 |
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 |