| 69 | } |
| 70 | |
| 71 | static void testNonExistingTargetDebugger() |
| 72 | { |
| 73 | QFETCH(QString, injectorType); |
| 74 | if (injectorType.isEmpty()) |
| 75 | return; |
| 76 | |
| 77 | LaunchOptions options; |
| 78 | options.setUiMode(LaunchOptions::NoUi); |
| 79 | // setting the probe is not strictly needed but we silence a runtime warning this way |
| 80 | options.setProbeABI(ProbeFinder::listProbeABIs().at(0)); |
| 81 | options.setLaunchArguments(QStringList() << QStringLiteral("I_DONT_EXIST")); |
| 82 | options.setInjectorType(injectorType); |
| 83 | Launcher launcher(options); |
| 84 | |
| 85 | QSignalSpy spy(&launcher, &Launcher::finished); |
| 86 | QVERIFY(launcher.start()); |
| 87 | |
| 88 | spy.wait(10000); |
| 89 | QCOMPARE(spy.size(), 1); |
| 90 | QEXPECT_FAIL("", "Debug injectors miss error detection for this case.", Continue); |
| 91 | QVERIFY(!launcher.errorMessage().isEmpty()); |
| 92 | } |
| 93 | |
| 94 | static void test() |
| 95 | { |
nothing calls this directly
no test coverage detected