Don't exit when ivl_root not found - the user may have supplied it.
When running 'make check' without having an installed copy, find_ivl_root()
will fail on Unix systems that don't provide /proc/self/exe (e.g. MacOS).
(cherry picked from commit 56d2d798ec)
This commit is contained in:
parent
f806ed5084
commit
0d9268cdbc
|
|
@ -1061,7 +1061,11 @@ static void find_ivl_root(void)
|
||||||
find_ivl_root_failed("command path exceeds size of string buffer.");
|
find_ivl_root_failed("command path exceeds size of string buffer.");
|
||||||
}
|
}
|
||||||
if (len <= 0) {
|
if (len <= 0) {
|
||||||
find_ivl_root_failed("couldn't get command path from OS.");
|
// We've failed, but we may yet find a -B option on the command line.
|
||||||
|
// Use the built-in path so the user sees a sensible error message.
|
||||||
|
assert(strlen(IVL_ROOT) < sizeof ivl_root);
|
||||||
|
strcpy(ivl_root, IVL_ROOT);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
s = strrchr(ivl_root, sep);
|
s = strrchr(ivl_root, sep);
|
||||||
if (s == 0) {
|
if (s == 0) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue