You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Various tests break if optimize-tests = false in config.toml #55757
Some number of tests in the test suite will break if you turn off optimization. (The breakage is usually not terrible; e.g. sometimes its mild difference in diagnostic output.)
This is nonetheless a real problem because there is no good way to work around it. For example, there is no way for a test to specify that it requires a certain opt-level.
Hmm, @oli-obk points out (#55532 (comment)) that one can add // compile-flags: -O to such tests to sidestep the behavior.
And that's true: One can pass -O multiple times to the compiler.
I had thought you couldn't, because what you cannot do is pass -O -C opt-level=0. I.e., there's a still a problem in that tests cannot specify that they require optimizations to be turned off.
The main symptom of this problem on OS X will be resolved if #54153 is closed by PR #56772
I'll go look if Linux has any similar issues.
If it doesn't... then I may close this. I'm tempted to still leave it open because tests should have some way to override the setting in config.toml. But that might be better left for a broader compiletest overhaul.
Activity
Update output of `lint-type-overflow2.stderr` to reflect its output f…
pnkfelix commentedon Nov 7, 2018
Hmm, @oli-obk points out (#55532 (comment)) that one can add
// compile-flags: -Oto such tests to sidestep the behavior.And that's true: One can pass
-Omultiple times to the compiler.I had thought you couldn't, because what you cannot do is pass
-O -C opt-level=0. I.e., there's a still a problem in that tests cannot specify that they require optimizations to be turned off.pnkfelix commentedon Dec 13, 2018
The main symptom of this problem on OS X will be resolved if #54153 is closed by PR #56772
I'll go look if Linux has any similar issues.
If it doesn't... then I may close this. I'm tempted to still leave it open because tests should have some way to override the setting in
config.toml. But that might be better left for a broadercompiletestoverhaul.pnkfelix commentedon Dec 14, 2018
Linux didn't have any analogous issues here. And I think PR #56772 will (eventually) go through. So I'm closing this.