Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Tests / MathTest / MathTestExec.cxx
blob5b94602a68bf6d09c2c0adb96acb6773c793f2c7
1 #include <stdio.h>
3 #define TEST_EXPRESSION(x, y) \
4 if ( (x) != (y) ) \
5 { \
6 printf("Problem with EXPR: Expression: \"%s\" in C returns %d while in CMake returns: %d\n", \
7 #x, (x), (y)); \
8 res ++; \
11 int main(int argc, char* argv[])
13 if ( argc > 1 )
15 printf("Usage: %s\n", argv[0]);
16 return 1;
18 int res = 0;
19 #include "MathTestTests.h"
20 if ( res != 0 )
22 printf("%s: %d math tests failed\n", argv[0], res);
23 return 1;
25 return 0;