From b86030fbaa1c1522f1d4f996ad763e2c3880bac9 Mon Sep 17 00:00:00 2001 From: rodri Date: Sat, 11 Nov 2023 09:16:04 +0000 Subject: fix paths in the test program. --- test/main.c | 6 ++++-- test/mkfile | 6 +++--- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'test') 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 #include -#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\