From 6817d1a2332b822e7f12e8904ad8e27081d6c827 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Sun, 19 Mar 2017 15:12:21 -0400 Subject: No C++ exceptions from cpu probe functions. See GH #920 --- src/tests/test_os_utils.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/tests/test_os_utils.cpp') diff --git a/src/tests/test_os_utils.cpp b/src/tests/test_os_utils.cpp index 58858a4c2..d779f41de 100644 --- a/src/tests/test_os_utils.cpp +++ b/src/tests/test_os_utils.cpp @@ -146,10 +146,6 @@ class OS_Utils_Tests : public Test result.confirm("Correct result returned by working probe fn", run_rc == 5); - std::function throw_fn = []() -> int { throw 3.14159; return 5; }; - const int throw_rc = Botan::OS::run_cpu_instruction_probe(throw_fn); - result.confirm("Error return if probe function threw exception", throw_rc < 0); - std::function crash_probe; #if defined(BOTAN_TARGET_COMPILER_IS_MSVC) -- cgit v1.2.3