summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libadhocutil/unittests/testFileUtils.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/libadhocutil/unittests/testFileUtils.cpp b/libadhocutil/unittests/testFileUtils.cpp
index 8d4b38f..00d0a16 100644
--- a/libadhocutil/unittests/testFileUtils.cpp
+++ b/libadhocutil/unittests/testFileUtils.cpp
@@ -27,6 +27,12 @@ BOOST_AUTO_TEST_CASE( mapfail )
}, AdHoc::SystemException);
}
+BOOST_AUTO_TEST_CASE( msg )
+{
+ AdHoc::SystemException x("verb", "No such file or directory", ENOENT);
+ BOOST_REQUIRE_EQUAL(x.what(), "verb (2:No such file or directory)");
+}
+
BOOST_AUTO_TEST_CASE( pathPart )
{
using namespace AdHoc::FileUtils;