MCPcopy Create free account
hub / github.com/KDE/kdevelop / testEnvironmentSet

Method testEnvironmentSet

plugins/debuggercommon/tests/debuggertestbase.cpp:309–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309void DebuggerTestBase::testEnvironmentSet()
310{
311 TestLaunchConfiguration cfg("debuggee_debugeeechoenv");
312 const QString profileName = isLldb() ? "LldbTestGroup" : "GdbTestGroup";
313
314 cfg.config().writeEntry(IExecutePlugin::environmentProfileEntry, profileName);
315
316 WritableEnvironmentProfileList envProfiles(cfg.rootConfig());
317 envProfiles.removeProfile(profileName);
318 auto& envs = envProfiles.variables(profileName);
319 const QString variableA = "-A' \" complex --value";
320 const QString variableB = "-B' \" complex --value";
321 envs["VariableA"] = variableA;
322 envs["VariableB"] = variableB;
323 envProfiles.saveSettings(cfg.rootConfig());
324
325 verifyInferiorStdout(cfg, {variableA, variableB});
326}
327
328void DebuggerTestBase::testEnvironmentCd()
329{

Callers

nothing calls this directly

Calls 6

writeEntryMethod · 0.80
rootConfigMethod · 0.80
configMethod · 0.45
removeProfileMethod · 0.45
variablesMethod · 0.45
saveSettingsMethod · 0.45

Tested by

no test coverage detected