From: Michael Jeanson Date: Thu, 6 Apr 2017 19:00:44 +0000 (-0400) Subject: Fix: ctf writer test on Cygwin X-Git-Tag: v1.5.3~12 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=1f90f04deea4c7109f97289d2fe08bf13cf0f183 Fix: ctf writer test on Cygwin In the ctf writer test we execl() some libtool wrappers that get confused when arg[0] is not the full path to the binary. Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- diff --git a/tests/lib/test_ctf_writer.c b/tests/lib/test_ctf_writer.c index 961df795..53613c91 100644 --- a/tests/lib/test_ctf_writer.c +++ b/tests/lib/test_ctf_writer.c @@ -94,7 +94,7 @@ void validate_metadata(char *parser_path, char *metadata_path) goto result; } - execl(parser_path, "ctf-parser-test", (char *) NULL); + execl(parser_path, parser_path, (char *) NULL); perror("# Could not launch the ctf metadata parser process"); exit(-1); } @@ -201,7 +201,7 @@ void validate_trace(char *parser_path, char *trace_path) goto result; } - execl(parser_path, "babeltrace", trace_path, (char *) NULL); + execl(parser_path, parser_path, trace_path, (char *) NULL); perror("# Could not launch the babeltrace process"); exit(-1); }