diff --git a/tests/exec/exec.cpp b/tests/exec/exec.cpp index 5afe329d4d..69b7eb3c17 100644 --- a/tests/exec/exec.cpp +++ b/tests/exec/exec.cpp @@ -116,7 +116,13 @@ private: wxProcess* callback_ = NULL) { forceExitLoop = forceExitLoop_; - command = command_; + + // Prepend the command with the value of wxTEST_RUNNER if it's + // defined to make this test work when using Wine too. + if ( wxGetEnv("wxTEST_RUNNER", &command) ) + command += ' '; + command += command_; + flags = flags_; callback = callback_;