]> sigrok.org Git - libsigrokflow.git/commitdiff
tests/init: Srf::init() before successful Gst::init() should throw.
authorUwe Hermann <redacted>
Wed, 9 Jan 2019 00:19:35 +0000 (01:19 +0100)
committerUwe Hermann <redacted>
Wed, 9 Jan 2019 00:19:35 +0000 (01:19 +0100)
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") {