diff --git a/tests/system/suite_debugger/tst_simple_debug/test.py b/tests/system/suite_debugger/tst_simple_debug/test.py
index b23f2e4a8859b338035d14992a6f2ea1dc5902f6..e6751b42dbe9a865795f35b62600e1c0069e37f5 100644
--- a/tests/system/suite_debugger/tst_simple_debug/test.py
+++ b/tests/system/suite_debugger/tst_simple_debug/test.py
@@ -16,7 +16,10 @@ def main():
         return
     # using a temporary directory won't mess up a potentially existing
     workingDir = tempDir()
-    checkedTargets, projectName = createNewQtQuickApplication(workingDir)
+    targetsVal = 0
+    for t in targets:
+        targetsVal |= t
+    checkedTargets, projectName = createNewQtQuickApplication(workingDir, targets=targetsVal)
     editor = waitForObject(":Qt Creator_QmlJSEditor::QmlJSTextEditorWidget")
     if placeCursorToLine(editor, "MouseArea.*", True):
         type(editor, '<Up>')