commit | 9bb0864170ee4cf31c3efed2d96c0ebd0b258c75 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Tue Jan 28 07:29:11 2025 -0800 |
committer | Elliott Hughes <enh@google.com> | Tue Jan 28 07:29:11 2025 -0800 |
tree | 517ef5826a599deab7cc536bcd41748bf182ce88 | |
parent | d597a90b4bf8441b779b1500bed7c7d0dc66a97a [diff] |
Add POSIX 2024 NSIG_MAX. https://www.austingroupbugs.net/view.php?id=741 Change-Id: I89117528e1ed8ab0f922bfa394fab16003070eab
diff --git a/tests/headers/posix/limits_h.c b/tests/headers/posix/limits_h.c index 0ca80a5..0a3bc1c 100644 --- a/tests/headers/posix/limits_h.c +++ b/tests/headers/posix/limits_h.c
@@ -58,6 +58,9 @@ #if !defined(__BIONIC__) MACRO(MQ_PRIO_MAX); #endif +#if defined(__BIONIC__) + MACRO(NSIG_MAX); +#endif #if !defined(__BIONIC__) && !defined(__GLIBC__) && !defined(ANDROID_HOST_MUSL) MACRO(OPEN_MAX); #endif
diff --git a/tests/limits_test.cpp b/tests/limits_test.cpp index bc13a3f..64d9a33 100644 --- a/tests/limits_test.cpp +++ b/tests/limits_test.cpp
@@ -78,3 +78,11 @@ #error ULLONG_MAX #endif } + +TEST(limits, highest_signal_plus_one) { +#if defined(__BIONIC__) + ASSERT_EQ(65, NSIG_MAX); +#endif + ASSERT_EQ(65, NSIG); + ASSERT_EQ(65, _NSIG); +}