summaryrefslogtreecommitdiffstats
path: root/tests/asm-tst4.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/asm-tst4.c')
-rw-r--r--tests/asm-tst4.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/asm-tst4.c b/tests/asm-tst4.c
index 52e9e20b..c076f6f3 100644
--- a/tests/asm-tst4.c
+++ b/tests/asm-tst4.c
@@ -28,6 +28,7 @@
#include <unistd.h>
#include <sys/wait.h>
+#include <system.h>
static const char fname[] = "asm-tst4-out.o";
@@ -93,7 +94,11 @@ main (void)
}
if (result == 0)
- result = WEXITSTATUS (system ("../src/elflint -q asm-tst4-out.o"));
+ {
+ char command[128];
+ sprintf(command, "..%csrc%celflint -q asm-tst4-out.o", DIRSEP, DIRSEP);
+ result = WEXITSTATUS (system (command));
+ }
/* We don't need the file anymore. */
unlink (fname);