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

Method testNonExistingTarget

tests/earlyexittest.cpp:45–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43
44private slots:
45 static void testNonExistingTarget()
46 {
47 LaunchOptions options;
48#ifdef Q_OS_MAC
49 // older OSX versions fall back to lldb by default, which has no synchronous error reporting, see below test
50 options.setInjectorType("preload");
51#endif
52 options.setUiMode(LaunchOptions::NoUi);
53 options.setProbeABI(ProbeFinder::listProbeABIs().at(0));
54 options.setWorkingDirectory(QCoreApplication::applicationDirPath());
55 options.setLaunchArguments(QStringList() << QStringLiteral("I_DONT_EXIST"));
56 options.setProbeSetting(QStringLiteral("ServerAddress"), GAMMARAY_DEFAULT_LOCAL_TCP_URL);
57 Launcher launcher(options);
58 QVERIFY(!launcher.start());
59 }
60
61 void testNonExistingTargetDebugger_data()
62 {

Callers

nothing calls this directly

Calls 8

listProbeABIsFunction · 0.85
setInjectorTypeMethod · 0.80
setUiModeMethod · 0.80
setProbeABIMethod · 0.80
setLaunchArgumentsMethod · 0.80
setProbeSettingMethod · 0.80
setWorkingDirectoryMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected