Test SKIP
authorBrian Aker <brian@tangent.org>
Tue, 22 May 2012 07:22:29 +0000 (03:22 -0400)
committerBrian Aker <brian@tangent.org>
Tue, 22 May 2012 07:22:29 +0000 (03:22 -0400)
libtest/cmdline.h
libtest/include.am
libtest/main.cc

index 700647d32aff200afc01cbfa629951a060832d84..9dd9f813e82bdf307ce1b0567ce1f532b265ad32 100644 (file)
 
 #include <spawn.h>
 
+// http://www.gnu.org/software/automake/manual/automake.html#Using-the-TAP-test-protocol
+#define EXIT_SKIP 77
+#define EXIT_FATAL 77
+
 namespace libtest {
 
 class Application {
index 529c26ed2f16923d89275af4b20b2caed4a586e4..b92145e45580ab554562dde47e40c5cfe275f33d 100644 (file)
@@ -236,6 +236,9 @@ libtest_skiptest_SOURCES= libtest/skiptest.cc
 check_PROGRAMS+= libtest/skiptest
 noinst_PROGRAMS+= libtest/skiptest
 
+test-skip: libtest/skiptest
+       @libtest/skiptest
+
 libtest_wait_SOURCES=
 libtest_wait_SOURCES+= libtest/wait.cc
 libtest_wait_SOURCES+= libtest/dream.cc
index 3ae8ff988ebe14e0662dd9cd49b99ee582dab703..0c876286ab264402c8d530c2754ba530abaac639 100644 (file)
@@ -251,7 +251,7 @@ int main(int argc, char *argv[])
 
         case TEST_SKIPPED:
           Out << "SKIP " << argv[0];
-          return EXIT_SUCCESS;
+          return EXIT_SKIP;
 
         case TEST_FAILURE:
           return EXIT_FAILURE;