]> sigrok.org Git - libsigrokflow.git/blobdiff - tests/init.cpp
tests/init: Srf::init() before successful Gst::init() should throw.
[libsigrokflow.git] / tests / init.cpp
index f8f206abbcc505840fc7852e66528cdc7d5f2fa7..0c4c47d94cfdd57bdd099183292da5eb3c66f088 100644 (file)
 
 TEST_CASE("init/deinit", "[init]")
 {
+       SECTION("Srf::init() before successful Gst::init() should throw") {
+               CHECK_THROWS(Srf::init());
+       }
+
        REQUIRE_NOTHROW(Gst::init());
 
        SECTION("Srf::init() after successful Gst::init() should not throw") {