]> sigrok.org Git - libsigrokflow.git/commitdiff
tests/init: Multiple Srf::init() calls should throw.
authorUwe Hermann <redacted>
Tue, 8 Jan 2019 22:16:37 +0000 (23:16 +0100)
committerUwe Hermann <redacted>
Tue, 8 Jan 2019 23:57:10 +0000 (00:57 +0100)
tests/init.cpp

index 18b74381383c393bb2105b535346ce59cd1a43cf..89cb23e23dee71f9842b1ac6e6dae4bf1be623c5 100644 (file)
@@ -26,6 +26,10 @@ TEST_CASE("init/deinit", "[init]")
 
        SECTION("Srf::init() after successful Gst::init() should not throw") {
                CHECK_NOTHROW(Srf::init());
+               SECTION("Multiple Srf::init() calls should throw") {
+                       for (int i = 0; i < 10; ++i)
+                               CHECK_THROWS(Srf::init());
+               }
        }
 
        REQUIRE_NOTHROW(Gst::deinit());