Skip to content

cmCTestRunTest: fix modifying non-existent envvars

When appending or modifying to a variable that has not been modified before, the iterator was not valid, but it was used to insert into the map again. Instead, just use indexing into the map since we know it will exist by the end of the function anyways.

Fixes: #22796 (closed)


Backport: release

Merge request reports