From b04f2a4697fd8eb5d47f5782292b36a67c7f4a6d Mon Sep 17 00:00:00 2001 From: Tom Date: Sat, 1 Aug 2020 17:37:52 +0200 Subject: [PATCH] test: add case signal-handler-throws --- test/test.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/test.cpp b/test/test.cpp index 9c80f3e..d358c57 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -378,3 +378,8 @@ TEST_CASE("looping-workers-with-exit-condition") } } +TEST_CASE("signal-handler-throws") +{ + REQUIRE_THROWS_AS( sgnl::SignalHandler({-1}) , sgnl::SignalHandlerException ); +} +