From aaea62a322c9a69b0f837183563714c5369535d6 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 5 Nov 2017 17:16:39 +0100 Subject: [PATCH] Avoid launching interactive programs in unattended tests This is typically going to fail anyhow, so don't even try to avoid useless error messages. --- tests/exec/exec.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/exec/exec.cpp b/tests/exec/exec.cpp index e3be763544..bc2cdfe052 100644 --- a/tests/exec/exec.cpp +++ b/tests/exec/exec.cpp @@ -171,6 +171,11 @@ void ExecTestCase::TestShell() void ExecTestCase::TestExecute() { + // Launching interactive programs doesn't work without an interactive + // session. + if ( IsAutomaticTest() ) + return; + AsyncInEventLoop asyncInEventLoop; // test asynch exec @@ -238,6 +243,9 @@ void ExecTestCase::TestExecute() void ExecTestCase::TestProcess() { + if ( IsAutomaticTest() ) + return; + AsyncInEventLoop asyncInEventLoop; // test wxExecute with wxProcess