Fix: ctf writer test on Cygwin
authorMichael Jeanson <mjeanson@efficios.com>
Thu, 6 Apr 2017 19:00:44 +0000 (15:00 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 26 May 2017 13:04:54 +0000 (09:04 -0400)
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 <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/lib/test_ctf_writer.c

index 961df795356855a48c6ea481263065169f16d7a7..53613c916acd9dc7f2e63e69c052b0e186cdae49 100644 (file)
@@ -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);
        }
This page took 0.027541 seconds and 4 git commands to generate.