summaryrefslogtreecommitdiff
path: root/test/test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-05-27 14:50:56 +0100
committerCarl Hetherington <cth@carlh.net>2014-05-27 14:50:56 +0100
commitf0de0c63504446714ab642f9db872bd31f9c070b (patch)
tree45ea6c4219a3a3dbd1dedde65f071ab092c5c290 /test/test.cc
parent170aa07b0c45d031b89815a5d07c8eb7e9226bbe (diff)
Rename STL -> STLText
Diffstat (limited to 'test/test.cc')
-rw-r--r--test/test.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/test.cc b/test/test.cc
index 423906b..feeba36 100644
--- a/test/test.cc
+++ b/test/test.cc
@@ -24,6 +24,7 @@
#include <string>
using std::string;
+using std::cerr;
using std::ifstream;
using std::getline;
@@ -46,6 +47,16 @@ BOOST_GLOBAL_FIXTURE (TestConfig);
void
check_text (string a, string b)
{
+ if (access (a.c_str(), F_OK) == -1) {
+ cerr << "File not found: " << a << "\n";
+ }
+
+ if (access (b.c_str(), F_OK) == -1) {
+ cerr << "File not found: " << b << "\n";
+ }
+
+ BOOST_CHECK_EQUAL (access (a.c_str(), F_OK), 0);
+
ifstream p (a.c_str ());
ifstream q (b.c_str ());