X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=test%2Ftest.cpp;h=8fd2e65fad420a0fcccc1ee7414b5c46aad03a1e;hp=acb3c963dcfb8a1488440c1f7165fe2f07a6a81a;hb=bf9f12687c8d43422455cbdc27ec1cc5d4305149;hpb=4780b4c82daf8e6d0386411d333967782bf52d8c diff --git a/test/test.cpp b/test/test.cpp index acb3c963..8fd2e65f 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 * @@ -14,24 +14,14 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * along with this program; if not, see . */ #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(); }