projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Segment: Catch by reference
[pulseview.git]
/
test
/
test.cpp
diff --git
a/test/test.cpp
b/test/test.cpp
index acb3c963dcfb8a1488440c1f7165fe2f07a6a81a..1f078ab4f8a3104a1a118caabe8027fcdd2961cc 100644
(file)
--- 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 <joel@airwebreathe.org.uk>
*
*
* Copyright (C) 2012 Joel Holdsworth <joel@airwebreathe.org.uk>
*
@@
-14,24
+14,16
@@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* 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 <http://www.gnu.org/licenses/>.
*/
#define BOOST_TEST_MAIN
*/
#define BOOST_TEST_MAIN
+#include "test/test.hpp"
#include <boost/test/unit_test.hpp>
#include <boost/test/unit_test.hpp>
-#include "../logicdatasnapshot.h"
+using std::ostream;
-
BOOST_AUTO_TEST_CASE(LogicDataSnapshotTest
)
+
ostream& operator<<(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();
}
}