comparison test/vamp-client/tst_PluginStub.cpp @ 199:5f71b038d193

Demonstrate that the plugin cannot be re-initialised after a failed call to process.
author Lucas Thompson <dev@lucas.im>
date Thu, 09 Feb 2017 11:01:13 +0000
parents cbbc806097cf
children c9471a9f4b71
comparison
equal deleted inserted replaced
198:94bab7bfbc78 199:5f71b038d193
130 { 130 {
131 const float scalingFactor = 2.0; 131 const float scalingFactor = 2.0;
132 vampPiperAdapter.setParameter("framing-scale", scalingFactor); 132 vampPiperAdapter.setParameter("framing-scale", scalingFactor);
133 REQUIRE( initWithPreferredFraming() == false ); 133 REQUIRE( initWithPreferredFraming() == false );
134 REQUIRE_THROWS( vampPiperAdapter.process(nullptr, {}) ); 134 REQUIRE_THROWS( vampPiperAdapter.process(nullptr, {}) );
135 REQUIRE_THROWS( initWithPreferredFraming() );
135 } 136 }
136 137
137 SECTION("Can process after correctly initialising framing") 138 SECTION("Can process after correctly initialising framing")
138 { 139 {
139 const float scalingFactor = 2.0; 140 const float scalingFactor = 2.0;