]> git.tdb.fi Git - libs/test.git/blobdiff - source/test.cpp
Add a method to manually fail a test
[libs/test.git] / source / test.cpp
index ab6e05234302604fa84435c1f147546d39761b31..a05349b594604a869b1729acf25f5894dad4c94d 100644 (file)
@@ -152,6 +152,11 @@ void Test::debug(const string &str)
        detail_debug += format("%s\n", str);
 }
 
+void Test::fail(const string &why)
+{
+       throw test_failed(why);
+}
+
 
 Test::Factory::Factory()
 {