diff options
author | Robert Löhning <robert.loehning@qt.io> | 2021-12-13 20:41:13 +0100 |
---|---|---|
committer | Robert Löhning <robert.loehning@qt.io> | 2022-03-01 12:26:13 +0000 |
commit | a763f5d6892d4047c0d38d8d6be9e33a1b6520e2 (patch) | |
tree | f380a257dcb36eef9d7c0073858609ca0da1686c /tests | |
parent | 7e4ee3797819ae2830759cbd10c1fa067eb5c344 (diff) | |
download | qt-creator-a763f5d6892d4047c0d38d8d6be9e33a1b6520e2.tar.gz |
Squish: Port tst_SCOM04 to CMake
Change-Id: I71f8978a41b25b2ed5fffaac1be6ff77cb3099f4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/system/suite_SCOM/tst_SCOM04/test.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/system/suite_SCOM/tst_SCOM04/test.py b/tests/system/suite_SCOM/tst_SCOM04/test.py index 511364c9f9..ad9320a01c 100644 --- a/tests/system/suite_SCOM/tst_SCOM04/test.py +++ b/tests/system/suite_SCOM/tst_SCOM04/test.py @@ -41,7 +41,10 @@ def main(): # create qt quick application createNewQtQuickApplication(tempDir(), "SampleApp") # create syntax error in cpp file - openDocument("SampleApp.Sources.main\\.cpp") + if not openDocument("SampleApp.SampleApp.Source Files.main\\.cpp"): + test.fatal("Could not open main.cpp - exiting.") + invokeMenuItem("File", "Exit") + return if not appendToLine(waitForObject(":Qt Creator_CppEditor::Internal::CPPEditorWidget"), "QQmlApplicationEngine engine;", "SyntaxError"): invokeMenuItem("File", "Exit") return |