Module: wine Branch: master Commit: 3a9a08cb3c959bcde7507511b552c232508a5bd0 URL: http://source.winehq.org/git/wine.git/?a=commit;h=3a9a08cb3c959bcde7507511b5...
Author: Paul Vriens Paul.Vriens.Wine@gmail.com Date: Thu Dec 18 11:41:56 2008 +0100
imm32/tests: We check for failure not success.
---
dlls/imm32/tests/imm32.c | 16 ++++------------ 1 files changed, 4 insertions(+), 12 deletions(-)
diff --git a/dlls/imm32/tests/imm32.c b/dlls/imm32/tests/imm32.c index ce73639..3329928 100644 --- a/dlls/imm32/tests/imm32.c +++ b/dlls/imm32/tests/imm32.c @@ -262,32 +262,24 @@ static void test_ImmSetCompositionString(void) if (!imc) return;
- SetLastError(0xdeadbeef); ret = ImmSetCompositionStringW(imc, SCS_SETSTR, NULL, 0, NULL, 0); todo_wine - ok(!ret, "ImmSetCompositionStringW() failed. Last error: %u\n", - GetLastError()); + ok(!ret, "ImmSetCompositionStringW() succeeded.\n");
- SetLastError(0xdeadbeef); ret = ImmSetCompositionStringW(imc, SCS_SETSTR | SCS_CHANGEATTR, NULL, 0, NULL, 0); todo_wine - ok(!ret, "ImmSetCompositionStringW() failed. Last error: %u\n", - GetLastError()); + ok(!ret, "ImmSetCompositionStringW() succeeded.\n");
- SetLastError(0xdeadbeef); ret = ImmSetCompositionStringW(imc, SCS_SETSTR | SCS_CHANGECLAUSE, NULL, 0, NULL, 0); todo_wine - ok(!ret, "ImmSetCompositionStringW() failed. Last error: %u\n", - GetLastError()); + ok(!ret, "ImmSetCompositionStringW() succeeded.\n");
- SetLastError(0xdeadbeef); ret = ImmSetCompositionStringW(imc, SCS_CHANGEATTR | SCS_CHANGECLAUSE, NULL, 0, NULL, 0); todo_wine - ok(!ret, "ImmSetCompositionStringW() failed. Last error: %u\n", - GetLastError()); + ok(!ret, "ImmSetCompositionStringW() succeeded.\n");
ImmReleaseContext(hwnd, imc); }