From ea83e5b3cf20594dce5ae9e06c6f02aa0adbb3b0 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sun, 27 Nov 2016 14:42:27 +0000 Subject: [PATCH 1/1] avoid path search in runtest and make abs paths work --- Makefile | 2 +- src/common/runtest.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0942e91..e786499 100644 --- a/Makefile +++ b/Makefile @@ -148,7 +148,7 @@ $(B)/%.exe: $(B)/%.o %.ld.err: %.exe touch $@ %.err: %.exe - $(RUN_TEST) ./$< >$@ || true + $(RUN_TEST) $< >$@ || true .PHONY: all run clean cleanall diff --git a/src/common/runtest.c b/src/common/runtest.c index 60e77ba..ea0c1a8 100644 --- a/src/common/runtest.c +++ b/src/common/runtest.c @@ -25,7 +25,7 @@ static int start(char *wrap, char *argv[]) argv--; argv[0] = wrap; } - execvp(argv[0], argv); + execv(argv[0], argv); t_error("%s exec failed: %s\n", argv[0], strerror(errno)); exit(1); } -- 2.20.1