diff --git a/tests/system/suite_editors/tst_modify_readonly/test.py b/tests/system/suite_editors/tst_modify_readonly/test.py index 0bb68a8ed3c..d947ade6aa7 100644 --- a/tests/system/suite_editors/tst_modify_readonly/test.py +++ b/tests/system/suite_editors/tst_modify_readonly/test.py @@ -85,6 +85,13 @@ def testSaveChangesAndMakeWritable(modifiedFiles, readOnlyFiles): except: test.fatal("Missing dialog regarding missing permission on read only files.") exitCanceled = False + + # workaround crashing test + # (AUT stopped responding / AUT '' did not respond to network communication) + __shutdownDone__ = lambda : not currentApplicationContext().isRunning + if test.verify(waitFor(__shutdownDone__, 1000), "Clean exit of Qt Creator."): + return + try: mBoxStr = "{type='QMessageBox' unnamed='1' visible='1' text?='*Could not save the files.'}" msgBox = waitForObject(mBoxStr, 3000)