diff --git a/tests/testutils.cpp b/tests/testutils.cpp index c2ac4b6..0eba6a9 100644 --- a/tests/testutils.cpp +++ b/tests/testutils.cpp @@ -561,12 +561,11 @@ static int execAppInternal(const char *appPath, const char *const *args, std::st // -> execute application if (enableSearchPath) { execvp(appPath, const_cast(args)); - } else { execv(appPath, const_cast(args)); } - cerr << Phrases::Error << "Unable to execute \"" << appPath << "\": execv() failed" << Phrases::EndFlush; - exit(-101); + cerr << Phrases::Error << "Unable to execute \"" << appPath << "\": " << std::strerror(errno) << Phrases::EndFlush; + exit(EXIT_FAILURE); } #else