-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[libc++][z/OS] Fixup two linear_congruential_engine tests #92261
Conversation
@llvm/pr-subscribers-libcxx Author: None (zibi2) ChangesFull diff: https://github.com/llvm/llvm-project/pull/92261.diff 1 Files Affected:
diff --git a/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/assign.pass.cpp b/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/assign.pass.cpp
index 73829071bd958..63a1a8adf4e35 100644
--- a/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/assign.pass.cpp
+++ b/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/assign.pass.cpp
@@ -83,7 +83,10 @@ int main(int, char**)
test<unsigned int>();
test_ext<unsigned int>();
test<unsigned long>();
+ // This isn't implemented on platforms without __int128
+#ifndef _LIBCPP_HAS_NO_INT128
test_ext<unsigned long>();
+#endif
test<unsigned long long>();
// This isn't implemented on platforms without __int128
#ifndef _LIBCPP_HAS_NO_INT128
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Next time, please wait for code owners to have a chance to review your changes.
Please provide a followup patch to fix this in the proper way.
@@ -83,7 +83,10 @@ int main(int, char**) | |||
test<unsigned int>(); | |||
test_ext<unsigned int>(); | |||
test<unsigned long>(); | |||
// This isn't implemented on platforms without __int128 | |||
#ifndef _LIBCPP_HAS_NO_INT128 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is wrong. The code should test for TEST_HAS_NO_INT128
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is wrong. The code should test for
TEST_HAS_NO_INT128
.
Sure, I will do this for existing guards as well.
@zibi2 Please disable the "hide my email" feature in Github. Otherwise, your commits are being committed under |
Yes, I willl. |
No description provided.