Merge "support _POSIX_REALTIME_SIGNALS"
[android-sdk/platform-bionic.git] / tests / unistd_test.cpp
index fd27682db45c06e14c323403e2fa44e4fc4adad9..96d66e48d6ff061b54413075f38cc38dc5574852 100644 (file)
@@ -556,6 +556,7 @@ TEST(unistd, _POSIX_macros_smoke) {
   EXPECT_EQ(_POSIX_VERSION, _POSIX_PRIORITY_SCHEDULING);
   EXPECT_EQ(_POSIX_VERSION, _POSIX_RAW_SOCKETS);
   EXPECT_EQ(_POSIX_VERSION, _POSIX_READER_WRITER_LOCKS);
+  EXPECT_EQ(_POSIX_VERSION, _POSIX_REALTIME_SIGNALS);
   EXPECT_GT(_POSIX_REGEXP, 0);
   EXPECT_GT(_POSIX_RE_DUP_MAX, 0);
   EXPECT_GT(_POSIX_SAVED_IDS, 0);
@@ -617,7 +618,6 @@ TEST(unistd, _POSIX_macros_smoke) {
   EXPECT_EQ(-1, _POSIX_BARRIERS);
   EXPECT_EQ(-1, _POSIX_MESSAGE_PASSING);
   EXPECT_EQ(-1, _POSIX_PRIORITIZED_IO);
-  EXPECT_EQ(-1, _POSIX_REALTIME_SIGNALS);
   EXPECT_EQ(-1, _POSIX_SHARED_MEMORY_OBJECTS);
   EXPECT_EQ(-1, _POSIX_SPAWN);
   EXPECT_EQ(-1, _POSIX_SPIN_LOCKS);
@@ -704,6 +704,7 @@ TEST(unistd, sysconf) {
   VERIFY_SYSCONF_POSIX_VERSION(_SC_MEMLOCK_RANGE);
   VERIFY_SYSCONF_POSIX_VERSION(_SC_MEMORY_PROTECTION);
   VERIFY_SYSCONF_POSIX_VERSION(_SC_PRIORITY_SCHEDULING);
+  VERIFY_SYSCONF_POSIX_VERSION(_SC_REALTIME_SIGNALS);
   VERIFY_SYSCONF_POSIX_VERSION(_SC_SEMAPHORES);
   VERIFY_SYSCONF_POSIX_VERSION(_SC_SYNCHRONIZED_IO);
   VERIFY_SYSCONF_POSIX_VERSION(_SC_TIMERS);
@@ -778,7 +779,6 @@ TEST(unistd, sysconf) {
   VERIFY_SYSCONF_NOT_SUPPORT(_SC_BARRIERS);
   VERIFY_SYSCONF_NOT_SUPPORT(_SC_MESSAGE_PASSING);
   VERIFY_SYSCONF_NOT_SUPPORT(_SC_PRIORITIZED_IO);
-  VERIFY_SYSCONF_NOT_SUPPORT(_SC_REALTIME_SIGNALS);
   VERIFY_SYSCONF_NOT_SUPPORT(_SC_SHARED_MEMORY_OBJECTS);
   VERIFY_SYSCONF_NOT_SUPPORT(_SC_SPAWN);
   VERIFY_SYSCONF_NOT_SUPPORT(_SC_SPIN_LOCKS);