commit 35e0881947ba22ff65b9fc84892ddb5d05444dd4
parent 5914d38f4dba8090441324e774d2af44ab11c51a
Author: kyle <kyle@0x30.net>
Date: Mon, 5 Sep 2016 16:46:19 -0600
src: generalize message for easier testing
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/inst_main.cc b/src/inst_main.cc
@@ -56,7 +56,7 @@ clean_PATH(InstrumentLogger &llog)
}
if (!found_citrun_path)
- errx(1, "Error: '%s' not in PATH.", CITRUN_SHARE);
+ errx(1, "Error: CITRUN_SHARE not in PATH.");
if (setenv("PATH", new_path.str().c_str(), 1))
err(1, "setenv");
diff --git a/t/inst_path.sh b/t/inst_path.sh
@@ -18,7 +18,7 @@ ok_program "run citrun-inst as cc with no PATH" 1 "$output_good" \
$CITRUN_TOOLS/cc -c nomatter.c
export PATH=""
-output_good="citrun-inst: Error: '/home/kyle/citrun/src' not in PATH."
+output_good="citrun-inst: Error: CITRUN_SHARE not in PATH."
ok_program "run citrun-inst as cc with empty PATH" 1 "$output_good" \
$CITRUN_TOOLS/cc -c nomatter.c 2> /dev/null