aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-01-23 07:51:48 -0500
committerJack Lloyd <[email protected]>2017-01-23 07:51:48 -0500
commitaa1950ec80199c65992e63bd2e5898b267ad38d6 (patch)
tree98f7c2ce3d316570b827e97eefb969b6cb6e6c55
parent8775c0ad6887d39e620191a758a44d86b07449b2 (diff)
Skip instruction probe test where fn not implemented
-rw-r--r--src/tests/test_os_utils.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tests/test_os_utils.cpp b/src/tests/test_os_utils.cpp
index 5b5e69d8d..e7313256e 100644
--- a/src/tests/test_os_utils.cpp
+++ b/src/tests/test_os_utils.cpp
@@ -103,6 +103,9 @@ class OS_Utils_Tests : public Test
{
Test::Result result("OS::run_cpu_instruction_probe");
+#if defined(BOTAN_TARGET_OS_TYPE_IS_UNIX)
+ // OS::run_cpu_instruction_probe only implemented for Unix signals right now
+
std::function<int ()> ok_fn = []() { return 5; };
const int run_rc = Botan::OS::run_cpu_instruction_probe(ok_fn);
result.confirm("Correct result returned by working probe fn", run_rc == 5);
@@ -136,6 +139,8 @@ class OS_Utils_Tests : public Test
}
#endif
+#endif
+
return result;
}
};