=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: reg/tests: Use todo_wine_if() in tests.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Feb 16 09:54:59 CST 2016
Module: wine
Branch: master
Commit: d15a807c3cdd5f7d5cdcf8e5a7abcb198d9b0fc5
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d15a807c3cdd5f7d5cdcf8e5a7abcb198d9b0fc5
Author: André Hentschel <nerv at dawncrow.de>
Date: Mon Feb 15 23:14:42 2016 +0100
reg/tests: Use todo_wine_if() in tests.
Signed-off-by: André Hentschel <nerv at dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
programs/reg/tests/reg.c | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/programs/reg/tests/reg.c b/programs/reg/tests/reg.c
index 80fc7d3..4b780b0 100644
--- a/programs/reg/tests/reg.c
+++ b/programs/reg/tests/reg.c
@@ -72,17 +72,11 @@ static void verify_reg_(unsigned line, HKEY hkey, const char* value,
if (err != ERROR_SUCCESS)
return;
- if (todo & TODO_REG_TYPE)
- todo_wine lok(type == exp_type, "got wrong type %d, expected %d\n", type, exp_type);
- else
+ todo_wine_if (todo & TODO_REG_TYPE)
lok(type == exp_type, "got wrong type %d, expected %d\n", type, exp_type);
- if (todo & TODO_REG_SIZE)
- todo_wine lok(size == exp_size, "got wrong size %d, expected %d\n", size, exp_size);
- else
+ todo_wine_if (todo & TODO_REG_SIZE)
lok(size == exp_size, "got wrong size %d, expected %d\n", size, exp_size);
- if (todo & TODO_REG_DATA)
- todo_wine lok(memcmp(data, exp_data, size) == 0, "got wrong data\n");
- else
+ todo_wine_if (todo & TODO_REG_DATA)
lok(memcmp(data, exp_data, size) == 0, "got wrong data\n");
}
More information about the wine-cvs
mailing list