| 307 | } |
| 308 | |
| 309 | void 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 | |
| 328 | void DebuggerTestBase::testEnvironmentCd() |
| 329 | { |
nothing calls this directly
no test coverage detected