From: Uwe Hermann Date: Wed, 9 Jan 2019 00:19:35 +0000 (+0100) Subject: tests/init: Srf::init() before successful Gst::init() should throw. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=3953677832e62af2e0106d917cd0d1d74bff480e;p=libsigrokflow.git tests/init: Srf::init() before successful Gst::init() should throw. --- diff --git a/tests/init.cpp b/tests/init.cpp index f8f206a..0c4c47d 100644 --- a/tests/init.cpp +++ b/tests/init.cpp @@ -22,6 +22,10 @@ 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") {