]> git.localhorst.tv Git - blank.git/blobdiff - tst/integration/InvocationTest.cpp
test for invoking with unknown argument
[blank.git] / tst / integration / InvocationTest.cpp
diff --git a/tst/integration/InvocationTest.cpp b/tst/integration/InvocationTest.cpp
new file mode 100644 (file)
index 0000000..0d4c52c
--- /dev/null
@@ -0,0 +1,27 @@
+#include "InvocationTest.hpp"
+
+#include "TestInstance.hpp"
+
+CPPUNIT_TEST_SUITE_REGISTRATION(blank::test::InvocationTest);
+
+
+namespace blank {
+namespace test {
+
+void InvocationTest::setUp() {
+
+}
+
+void InvocationTest::tearDown() {
+
+}
+
+
+void InvocationTest::testUnknownArg() {
+       TestInstance prog({ "--worscht" });
+       prog.AssertErrorLine("unknown option --worscht");
+       prog.AssertExitStatus(1);
+}
+
+}
+}