diff options
-rw-r--r-- | src/tests/test_os_utils.cpp | 5 |
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; } }; |