summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-07-22 09:17:06 +0100
committerCarl Hetherington <cth@carlh.net>2016-07-22 09:17:06 +0100
commitb08e6b4c723efef245903caca49c2dafb11f8722 (patch)
treee98a07d4606b2c6d08d8bcbf2be2d710de5eb85b /test
parent26181f4db08a6d295e34fc666592cdaa64a36782 (diff)
Fix GPL boilerplate. Add locked_sstream dependency. Remove
Document::read_stream; improve Document::read_string efficiency. Use locked_stringstream instead of plain one to try to fix DCP-o-matic crashes on OS X.
Diffstat (limited to 'test')
-rw-r--r--test/tests.cc13
-rw-r--r--test/wscript20
2 files changed, 26 insertions, 7 deletions
diff --git a/test/tests.cc b/test/tests.cc
index 9d07e7c..ad5cc72 100644
--- a/test/tests.cc
+++ b/test/tests.cc
@@ -1,23 +1,23 @@
/*
- Copyright (C) 2012 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2012-2016 Carl Hetherington <cth@carlh.net>
- This program is free software; you can redistribute it and/or modify
+ This file is part of libcxml.
+
+ libcxml is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
- This program is distributed in the hope that it will be useful,
+ libcxml is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
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., 675 Mass Ave, Cambridge, MA 02139, USA.
+ along with libcxml. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <iostream>
#include <cmath>
#include <boost/filesystem.hpp>
#include <libxml++/libxml++.h>
@@ -28,7 +28,6 @@
#include <boost/test/unit_test.hpp>
using std::string;
-using std::cout;
using std::vector;
using std::list;
using boost::shared_ptr;
diff --git a/test/wscript b/test/wscript
index 7133792..ecf4d47 100644
--- a/test/wscript
+++ b/test/wscript
@@ -1,3 +1,23 @@
+# -*- mode: python -*-
+#
+# Copyright (C) 2016 Carl Hetherington <cth@carlh.net>
+#
+# This file is part of libcxml.
+#
+# libcxml is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# libcxml is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with libcxml. If not, see <http://www.gnu.org/licenses/>.
+#
+
def configure(conf):
conf.env.prepend_value('LINKFLAGS', '-Lsrc')