From 34eac527ee8303b9176404fe2e69e2168d057452 Mon Sep 17 00:00:00 2001 From: Martchus Date: Thu, 25 Oct 2018 18:20:14 +0200 Subject: [PATCH] Log actual application path when testing --- tests/testutils.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/testutils.cpp b/tests/testutils.cpp index 35a9e6d..497375b 100644 --- a/tests/testutils.cpp +++ b/tests/testutils.cpp @@ -370,9 +370,12 @@ int execAppInternal(const char *appPath, const char *const *args, std::string &o { // print log message if (!suppressLogging) { - cout << '-'; - for (const char *const *i = args; *i; ++i) { - cout << ' ' << *i; + // print actual appPath and skip first argument instead + cout << '-' << ' ' << appPath; + if (*args) { + for (const char *const *i = args + 1; *i; ++i) { + cout << ' ' << *i; + } } cout << endl; }