From e7798c555a23889e14ed27654be97141d6383b9e Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Tue, 22 May 2012 03:22:29 -0400 Subject: [PATCH] Test SKIP --- libtest/cmdline.h | 4 ++++ libtest/include.am | 3 +++ libtest/main.cc | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/libtest/cmdline.h b/libtest/cmdline.h index 700647d3..9dd9f813 100644 --- a/libtest/cmdline.h +++ b/libtest/cmdline.h @@ -38,6 +38,10 @@ #include +// 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 { diff --git a/libtest/include.am b/libtest/include.am index 529c26ed..b92145e4 100644 --- a/libtest/include.am +++ b/libtest/include.am @@ -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 diff --git a/libtest/main.cc b/libtest/main.cc index 3ae8ff98..0c876286 100644 --- a/libtest/main.cc +++ b/libtest/main.cc @@ -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; -- 2.30.2