Avoid launching interactive programs in unattended tests

This is typically going to fail anyhow, so don't even try to avoid
useless error messages.
This commit is contained in:
Vadim Zeitlin
2017-11-05 17:16:39 +01:00
parent d36d251e8d
commit aaea62a322

View File

@@ -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