From: Brian Aker Date: Tue, 22 May 2012 07:22:29 +0000 (-0400) Subject: Test SKIP X-Git-Tag: 1.0.8~1 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=e7798c555a23889e14ed27654be97141d6383b9e;p=m6w6%2Flibmemcached Test SKIP --- 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;