X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Ftest.c;h=9a79e4c5b4da94cc00903273b08f55bd21590a31;hb=c4dbc7e56b01545e25bc95ba122c79d4a2631a99;hp=009c4be5c7e9289c550b36b3c4cdb0a9bc726250;hpb=349ca737f30ff0b6c3c71034f0930660663fa360;p=m6w6%2Flibmemcached diff --git a/libtest/test.c b/libtest/test.c index 009c4be5..9a79e4c5 100644 --- a/libtest/test.c +++ b/libtest/test.c @@ -10,7 +10,7 @@ Sample test application. */ -#include "config.h" +#include #include @@ -27,6 +27,7 @@ #include #include +#include static void world_stats_print(world_stats_st *stats) { @@ -156,7 +157,7 @@ int main(int argc, char *argv[]) if (sasl_client_init(NULL) != SASL_OK) { fprintf(stderr, "Failed to initialize sasl library!\n"); - return 1; + return EXIT_FAILURE; } #endif @@ -298,6 +299,9 @@ skip_pre: stats.success++; break; case TEST_FAILURE: +#if 0 + push_failed_test(next->name, run->name); +#endif stats.failed++; failed= true; break; @@ -343,6 +347,9 @@ cleanup: if (stats.collection_failed || stats.collection_skipped) { fprintf(stderr, "Some test failures and/or skipped test occurred.\n\n"); +#if 0 + print_failed_test(); +#endif } else { @@ -357,7 +364,7 @@ cleanup: if (error != TEST_SUCCESS) { fprintf(stderr, "Failure during shutdown.\n"); - stats.failed++; // We do this to make our exit code return 1 + stats.failed++; // We do this to make our exit code return EXIT_FAILURE } }