Gabriel Ivăncescu : vbscript/tests: Use integers instead of booleans for counting call expectations.
Alexandre Julliard
julliard at winehq.org
Mon Nov 11 16:20:23 CST 2019
Module: wine
Branch: master
Commit: 2d45f49fe8ef71fa15f356244a641a6423464f3a
URL: https://source.winehq.org/git/wine.git/?a=commit;h=2d45f49fe8ef71fa15f356244a641a6423464f3a
Author: Gabriel Ivăncescu <gabrielopcode at gmail.com>
Date: Mon Nov 11 14:34:27 2019 +0200
vbscript/tests: Use integers instead of booleans for counting call expectations.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 c0a582c361..3fe73a910d 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);
More information about the wine-cvs
mailing list