MCPcopy Create free account
hub / github.com/KDAB/GammaRay / testNonExistingTargetDebugger

Method testNonExistingTargetDebugger

tests/earlyexittest.cpp:71–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 9

listProbeABIsFunction · 0.85
setUiModeMethod · 0.80
setProbeABIMethod · 0.80
setLaunchArgumentsMethod · 0.80
setInjectorTypeMethod · 0.80
errorMessageMethod · 0.80
isEmptyMethod · 0.45
startMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected