aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-12-13 17:57:31 -0500
committerJack Lloyd <[email protected]>2017-12-30 14:15:51 -0500
commit092114e11c27de26a53aefa08547cc0bc44717ca (patch)
tree38b26479b272cd6fa60deb2b995f0d116087b331 /src/tests
parent2d3cee8b02a1823ef05eedbbd3e435131460635a (diff)
Test OS features by the feature vs the OS name
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/test_os_utils.cpp4
-rw-r--r--src/tests/test_rng.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/test_os_utils.cpp b/src/tests/test_os_utils.cpp
index 6707e8960..1c159ca75 100644
--- a/src/tests/test_os_utils.cpp
+++ b/src/tests/test_os_utils.cpp
@@ -55,8 +55,8 @@ class OS_Utils_Tests final : public Test
result.test_eq("PID same across calls", static_cast<size_t>(pid1), static_cast<size_t>(pid2));
-#if defined(BOTAN_TARGET_OS_TYPE_IS_UNIKERNEL)
- result.test_eq("PID is zero on unikernel systems", pid1, 0);
+#if defined(BOTAN_TARGET_OS_IS_INCLUDEOS) || defined(BOTAN_TARGET_OS_IS_LLVM)
+ result.test_eq("PID is expected to be zero on this platform", pid1, 0);
#else
result.test_ne("PID is non-zero on systems with processes", pid1, 0);
#endif
diff --git a/src/tests/test_rng.cpp b/src/tests/test_rng.cpp
index 193a94379..a7a83134f 100644
--- a/src/tests/test_rng.cpp
+++ b/src/tests/test_rng.cpp
@@ -37,7 +37,7 @@
#include <botan/entropy_src.h>
#endif
-#if defined(BOTAN_TARGET_OS_TYPE_IS_UNIX)
+#if defined(BOTAN_TARGET_OS_HAS_POSIX1)
#include <unistd.h>
#include <sys/wait.h>
#endif
@@ -273,7 +273,7 @@ class Stateful_RNG_Tests : public Test
{
Test::Result result(rng_name() + " Fork Safety");
-#if defined(BOTAN_TARGET_OS_TYPE_IS_UNIX)
+#if defined(BOTAN_TARGET_OS_HAS_POSIX1)
const size_t reseed_interval = 1024;
// make sure rng is reseeded after every fork