Let the test suite spit "PASS" or "FAIL"

This commit is contained in:
Pierre Pronchery 2014-07-28 20:59:59 +02:00
parent bd18c9140d
commit ce0614492e
4 changed files with 27 additions and 27 deletions

View File

@ -1,25 +1,25 @@
#ifdef GOOD
#error error
#error FAIL
#endif
#define GOOD 1
#ifdef GOOD
#warning good
#warning PASS
#else
#error error
#error FAIL
#endif
#ifndef GOOD
#error error
#error FAIL
#else
#warning good
#warning PASS
#endif
#undef GOOD
#ifndef GOOD
#warning good
#warning PASS
#else
#error error
#error FAIL
#endif

View File

@ -1,43 +1,43 @@
#if 0
#error error
#error FAIL
#else
#warning good
#warning PASS
#endif
#if 1
#warning good
#warning PASS
#else
#error error
#error FAIL
#endif
#define GOOD 1
#if GOOD
#warning good
#warning PASS
#else
#error error
#error FAIL
#endif
#undef GOOD
#define GOOD 0
#if !GOOD
#warning good
#warning PASS
#else
#error error
#error FAIL
#endif
#undef GOOD
#define GOOD 1
#if 0
#error error
#error FAIL
#elif GOOD
#warning good
#warning PASS
#endif
#undef GOOD
#define GOOD 0
#if 0
#error error
#error FAIL
#elif !GOOD
#warning good
#warning PASS
#endif
#undef GOOD

View File

@ -1,31 +1,31 @@
#if 0
#warning good
#warning PASS
#endif
#if 1
#warning good
#warning PASS
#else
#define GOOD 1
#if GOOD
#warning good
#warning PASS
#else
#undef GOOD
#define GOOD 0
#if !GOOD
#warning good
#warning PASS
#else
#undef GOOD
#define GOOD 1
#if 0
#warning good
#warning PASS
#endif
#undef GOOD
#define GOOD 0
#if 0
#warning good
#warning PASS
#endif
#undef GOOD

View File

@ -1,6 +1,6 @@
#include "include-define.cpp"
#ifdef GOOD
#warning good
#warning PASS
#else
#error error
#error FAIL
#endif