[PATCH v4 09/10] vbscript/tests: Use integers instead of booleans for counting call expectations.
Gabriel Ivăncescu
gabrielopcode at gmail.com
Wed Nov 6 05:53:05 CST 2019
Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
---
This will be needed for next patch, since we'll need to record two such
calls at one point.
dlls/vbscript/tests/vbscript.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/vbscript/tests/vbscript.c b/dlls/vbscript/tests/vbscript.c
index c0a582c..3fe73a9 100644
--- a/dlls/vbscript/tests/vbscript.c
+++ b/dlls/vbscript/tests/vbscript.c
@@ -53,27 +53,27 @@
DEFINE_GUID(GUID_NULL,0,0,0,0,0,0,0,0,0,0,0);
#define DEFINE_EXPECT(func) \
- static BOOL expect_ ## func = FALSE, called_ ## func = FALSE
+ static int expect_ ## func = 0, called_ ## func = 0
#define SET_EXPECT(func) \
- expect_ ## func = TRUE
+ expect_ ## func = 1
#define CHECK_EXPECT2(func) \
do { \
ok(expect_ ##func, "unexpected call " #func "\n"); \
- called_ ## func = TRUE; \
+ called_ ## func++; \
}while(0)
#define CHECK_EXPECT(func) \
do { \
CHECK_EXPECT2(func); \
- expect_ ## func = FALSE; \
+ expect_ ## func--; \
}while(0)
#define CHECK_CALLED(func) \
do { \
ok(called_ ## func, "expected " #func "\n"); \
- expect_ ## func = called_ ## func = FALSE; \
+ expect_ ## func = called_ ## func = 0; \
}while(0)
DEFINE_EXPECT(GetLCID);
--
2.21.0
More information about the wine-devel
mailing list