Commit Graph

9 Commits

Author SHA1 Message Date
Eric Pouech 7ebbc4f8cd infosoft/tests: Enable compilation with long types.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-28 10:32:25 +01:00
Francois Gouget b908ec2294 infosoft/tests: Fix refilling the text buffer.
Up to Windows 10 1507 BreakText() would increment iCur but later Windows
versions leave it unchanged. So assume all characters up to iEnd have
been processed.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50844
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-10 20:33:34 +02:00
Francois Gouget 8ac9f334b4 infosoft/tests: Fix the pfnFillTextBuffer() return value.
Windows Vista to Windows 10 1507 expect pfnFillTextBuffer() to return
WBREAK_E_END_OF_TEXT to signal the end of the string. Returning
unexpected values such as E_FAIL causes BreakText() to abort and report
them to the caller.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50843
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-10 20:33:34 +02:00
Francois Gouget b2985803c2 infosoft/tests: Improve the failure messages.
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-10 20:33:34 +02:00
Francois Gouget 86edbc8b14 infosoft/tests: Fix the infinite loop and crash on Windows 10 1607+.
The test only has expected data for the first four words. So abort if
more are found.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-10 20:33:34 +02:00
Michael Stefaniuc 449d269470 infosoft/tests: Use wide-char string literals.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-02 09:58:07 +02:00
Frédéric Delanoy ab159ead21 infosoft/tests: Constify a character string. 2013-12-24 11:22:44 +01:00
Michael Stefaniuc a3a09cd3f2 infosoft/tests: COM cleanup in infosoft.c. 2011-06-01 15:15:24 +02:00
Mike McCormack b5871fa512 infosoft: Add a test for the language neutral word breaker. 2006-08-15 19:24:43 +02:00