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

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