Skip to content

Conversation

@akoeplinger
Copy link
Member

In 16988fc the refactoring added IsGCStress and used it in the IsStressTest property.
However the GetEnvironmentVariableValue("GCStress") != string.Empty is always true since GetEnvironmentVariableValue will return the string "0" if the env variable isn't set.

This in turn caused StressModeApplies to return false for RuntimeTestModes.RegularRun which made the SkipOnCoreClr attribute a no-op in regular runs. Discovered while looking at failures in dotnet/runtime#61668.

/cc @jkoritzinsky

In 16988fc the refactoring added `IsGCStress` and used it in the `IsStressTest` property.
However the `GetEnvironmentVariableValue("GCStress") != string.Empty` is always true since `GetEnvironmentVariableValue` will return the string "0" if the env variable isn't set.

This in turn caused `StressModeApplies` to return false for `RuntimeTestModes.RegularRun` which made the `SkipOnCoreClr` attribute a no-op in regular runs.
@premun premun merged commit 427c059 into dotnet:main Nov 26, 2021
@akoeplinger akoeplinger deleted the fix-coreclr branch November 26, 2021 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants