mirror of
https://github.com/reactos/reactos.git
synced 2025-04-28 01:11:35 +00:00
Add the macro I forgot.
svn path=/trunk/; revision=40220
This commit is contained in:
parent
126f671726
commit
809d606072
1 changed files with 25 additions and 2 deletions
|
@ -40,7 +40,7 @@ typedef struct tagTEST
|
||||||
if (x)\
|
if (x)\
|
||||||
{\
|
{\
|
||||||
(pti->passed)++;\
|
(pti->passed)++;\
|
||||||
printf("non-rtest succeeded in %s:%d (%s)\n", __FILE__, __LINE__, #x);\
|
printf("%s:%d: non-rtest succeeded (%s)\n", __FILE__, __LINE__, #x);\
|
||||||
} else {\
|
} else {\
|
||||||
(pti->failed)++;\
|
(pti->failed)++;\
|
||||||
} \
|
} \
|
||||||
|
@ -52,7 +52,30 @@ typedef struct tagTEST
|
||||||
(pti->passed)++;\
|
(pti->passed)++;\
|
||||||
} else {\
|
} else {\
|
||||||
(pti->failed)++;\
|
(pti->failed)++;\
|
||||||
printf("test failed in %s:%d (%s)\n", __FILE__, __LINE__, #x);\
|
printf("%s:%d: test failed (%s)\n", __FILE__, __LINE__, #x);\
|
||||||
|
} \
|
||||||
|
}
|
||||||
|
|
||||||
|
#define TESTX(x, format, ...) \
|
||||||
|
if (pti->bRegress) \
|
||||||
|
{ \
|
||||||
|
if (x)\
|
||||||
|
{\
|
||||||
|
(pti->passed)++;\
|
||||||
|
printf("%s:%d: non-rtest succeeded (%s)\n", __FILE__, __LINE__, #x);\
|
||||||
|
} else {\
|
||||||
|
(pti->failed)++;\
|
||||||
|
} \
|
||||||
|
} \
|
||||||
|
else \
|
||||||
|
{ \
|
||||||
|
if (x)\
|
||||||
|
{\
|
||||||
|
(pti->passed)++;\
|
||||||
|
} else {\
|
||||||
|
(pti->failed)++;\
|
||||||
|
printf("%s:%d: test failed (%s) ", __FILE__, __LINE__, #x);\
|
||||||
|
printf(format, __VA_ARGS__); \
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue