21 #include <libsigrokdecode/libsigrokdecode.h>
22 #include <boost/test/unit_test.hpp>
24 #include <libsigrokcxx/libsigrokcxx.hpp>
26 #include "../../pv/data/decoderstack.hpp"
27 #include "../../pv/devicemanager.hpp"
28 #include "../../pv/session.hpp"
29 #include "../../pv/view/decodetrace.hpp"
34 using std::shared_ptr;
42 sr_context *ctx =
nullptr;
44 BOOST_REQUIRE(sr_init(&ctx) == SR_OK);
47 BOOST_REQUIRE(srd_init(
nullptr) == SRD_OK);
49 srd_decoder_load_all();
55 const GSList *l = srd_decoder_list();
57 srd_decoder *
const dec = (
struct srd_decoder*)l->data;
64 const vector< shared_ptr<DecodeTrace> > sigs =
65 ss.get_decode_signals();
67 shared_ptr<DecoderStack> dec0 = sigs[0]->decoder();
70 shared_ptr<DecoderStack> dec1 = sigs[0]->decoder();
74 dec0->decode_thread_.join();
75 dec1->decode_thread_.join();
78 BOOST_CHECK_EQUAL(dec0->error_message().isEmpty(),
true);
79 BOOST_CHECK_EQUAL(dec1->error_message().isEmpty(),
true);
87 BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(DummyTestCase)