X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=test%2Ftest.cpp;h=2d67f2935e2bf48e3cc4b9c83208ec374bac168d;hb=55547a4510d8ff310ab1ac57e69e3e51132b2c2f;hp=acb3c963dcfb8a1488440c1f7165fe2f07a6a81a;hpb=4780b4c82daf8e6d0386411d333967782bf52d8c;p=pulseview.git diff --git a/test/test.cpp b/test/test.cpp index acb3c963..2d67f293 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -1,5 +1,5 @@ /* - * This file is part of the sigrok project. + * This file is part of the PulseView project. * * Copyright (C) 2012 Joel Holdsworth * @@ -20,18 +20,9 @@ #define BOOST_TEST_MAIN #include +#include "test/test.hpp" -#include "../logicdatasnapshot.h" - -BOOST_AUTO_TEST_CASE(LogicDataSnapshotTest) +std::ostream& operator<<(std::ostream& stream, const QString& str) { - // Create an empty LogicDataSnapshot object - sr_datafeed_logic logic; - logic.length = 0; - logic.unitsize = 1; - logic.data = NULL; - - LogicDataSnapshot s(logic); - - BOOST_CHECK(s.get_sample_count() == 0); + return stream << str.toUtf8().data(); }