Skip to content
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

Merged
merged 2 commits into from
May 16, 2024

Conversation

zibi2
Copy link
Contributor

@zibi2 zibi2 commented May 15, 2024

No description provided.

@zibi2 zibi2 self-assigned this May 15, 2024
@zibi2 zibi2 requested a review from a team as a code owner May 15, 2024 13:48
@llvmbot llvmbot added the libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. label May 15, 2024
@llvmbot
Copy link
Member

llvmbot commented May 15, 2024

@llvm/pr-subscribers-libcxx

Author: None (zibi2)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/92261.diff

1 Files Affected:

  • (modified) libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/assign.pass.cpp (+3)
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

@zibi2 zibi2 changed the title [libc++][z/OS] Fixup linear_congruential_engine test [libc++][z/OS] Fixup two linear_congruential_engine tests May 15, 2024
Copy link
Member

@muiez muiez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zibi2 zibi2 merged commit 588ce34 into llvm:main May 16, 2024
49 of 51 checks passed
Copy link
Member

@mordante mordante left a 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
Copy link
Member

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.

Copy link
Contributor Author

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.

@ldionne
Copy link
Member

ldionne commented May 21, 2024

@zibi2 Please disable the "hide my email" feature in Github. Otherwise, your commits are being committed under 62662650+zibi2@users.noreply.github.com and we require a valid email address for every commit.

@zibi2
Copy link
Contributor Author

zibi2 commented May 22, 2024

@zibi2 Please disable the "hide my email" feature in Github. Otherwise, your commits are being committed under 62662650+zibi2@users.noreply.github.com and we require a valid email address for every commit.

Yes, I willl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants