This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] [test] Clarify a MinGW test failure waiver in rand.dist.uni.int/eval.pass.cpp
ClosedPublic

Authored by mstorsjo on Jan 26 2022, 4:12 AM.

Diff Detail

Event Timeline

mstorsjo requested review of this revision.Jan 26 2022, 4:12 AM
mstorsjo created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJan 26 2022, 4:12 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript

I think my comment is worth pursuing, but if it doesn't work out, then I think this is a vast improvement anyway. Thanks!

libcxx/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/eval.pass.cpp
136

Is there an easy way to just change this ifdef, assuming it controls the trouble spot in Clang 13?
git grep TEST_BUGGY_SIGNALING_NAN libcxx/test/ to see the approach I'm thinking of.

mstorsjo added inline comments.Jan 26 2022, 12:41 PM
libcxx/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/eval.pass.cpp
136

Oh, indeed, that works (I never checked that far in the source before) and is even nicer.

mstorsjo updated this revision to Diff 403376.Jan 26 2022, 12:42 PM
mstorsjo marked an inline comment as done.

Use a conditional ifdef to narrow down the workaround as suggested.

Quuxplusone accepted this revision.Jan 26 2022, 1:11 PM

LGTM if CI is green!
I observe that unfortunately we set TEST_BUGGY_FOO to true exactly when we don't want to test the buggy foo; but I think my original logic there was that TEST_ was a prefix for all test macros, and so the name of the macro was meant to signify "(We're in a) test, and foo is buggy." Anyway, as long as this is consistent with TEST_BUGGY_SIGNALING_NAN, I'm cool with it.

This revision is now accepted and ready to land.Jan 26 2022, 1:11 PM
This revision was landed with ongoing or failed builds.Jan 27 2022, 3:21 AM
This revision was automatically updated to reflect the committed changes.