Alexandre Julliard
4dc4bab93f
include: Remove winetest_strcmpW.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-29 13:58:05 +01:00
Francois Gouget
033196641b
tests: Add support for subtests.
...
Some Wine tests run code compiled from another C file, resulting in
traces and errors that look like they come from a different test.
subtest() allows such tests to declare their subtests so they are
recognized by scripts parsing the results such as the TestBot and
WineTest website.
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-03 20:42:56 +02:00
Alexandre Julliard
a16ef96dc6
include/msvcrt: Add INFINITY and NAN definitions.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-30 15:03:37 +02:00
Mathew Hodson
a640a7a32f
include: Add cast to avoid a compiler warning on MSVC.
...
Signed-off-by: Mathew Hodson <mathew.hodson@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-15 12:50:25 +02:00
Michael Stefaniuc
962b31c80b
include: Add a generic available ARRAY_SIZE().
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-04 10:39:15 +02:00
Michael Stefaniuc
f0edfa3d75
include: Add an option to disable line numbers in the tests.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-13 22:13:27 +02:00
Michael Stefaniuc
7b5668a6e7
include: Make ARRAY_SIZE() available in wine/test.h.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-25 12:09:17 +02:00
Martin Storsjo
8fb8cc03c3
arm64: Use __builtin_ms_va_list and __attribute__((ms_abi)) on arm64.
...
Windows uses a different ABI for va_list on arm64 just like on x86_64.
On x86_64, the calling convention for windows functions is completely
different from the one on other platforms. On arm64, they're mostly the
same, with the only exception being variadic functions (where all float
arguments are passed in integer registers, since the va_list is a single
pointer).
Any functions using __builtin_ms_va_start need to be decorated with
__attribute__((ms_abi)).
Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-10 08:36:58 +02:00
Zebediah Figura
80f82ee9d7
ntoskrnl.exe/tests: Add a test for IoGetCurrentProcess().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-02 10:00:46 +02:00
Alistair Leslie-Hughes
87b72098c3
include: Support wine_dbgstr_longlong in tests.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-03 15:57:45 +02:00
Sebastian Lackner
fc84f2462a
include: Avoid typedef for tls_data.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-08 17:12:22 +01:00
Francois Gouget
873eace6e4
wine/test.h: Identify the process responsible for test summary lines.
...
Currently the child process summary lines are indistinguishable from the
main process one. This makes it impossible to automatically detect
when a process exits abruptly, i.e. without printing a summary line,
if it has run a subprocess.
This will let analysis tools identify which summary lines correspond to
processes they started and thus when some are missing. Note also that
in case of a crash the 'unhandled exception' play the same role as the
test summary lines. Thus it is important to also tag them with the pid
of the source process.
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-22 16:45:22 +01:00
Michael Stefaniuc
636340ce34
include: Make wine_dbgstr_rect() available for tests too.
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-07 17:08:28 +09:00
Bernhard Übelacker
9a08714c02
include: Implement todo_wine_if for usage in wine tests.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-09 20:09:27 +09:00
Francois Gouget
f6dc7c88ba
kernel32/tests: Help the tests portably declare printf()-syle functions.
...
To do so they can now use the WINETEST_PRINTF_ATTR() macro.
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-13 23:46:33 +09:00
Francois Gouget
4a983e3118
tests: Use plain printf() calls instead of fprintf(stdout).
...
The fprintf() calls are a left-over from when errors were reported to stderr.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-13 23:46:29 +09:00
Sebastian Lackner
61b8a189c5
include: Automatically detect if tests are running under Wine when WINETEST_PLATFORM is not specified.
2015-04-06 12:06:12 +09:00
Frédéric Delanoy
9134a24e87
include: Make wine_dbgstr_guid available in test.h for all tests.
2014-01-28 11:43:49 +01:00
Frédéric Delanoy
e46796e7a4
wine/test.h: Fix a typo in comment.
2014-01-17 11:01:42 +01:00
Dmitry Timoshkov
b632f0966d
kernel32: Count precise amount of child process failures.
2013-04-18 11:54:28 +02:00
Dmitry Timoshkov
521cf664d3
kernel32: Add a test for threads state when a process is being terminated.
2013-04-12 11:49:14 +02:00
Dmitry Timoshkov
b527679d17
include/wine/test.h: Fix compilation of standalone tests with PSDK headers.
2012-06-22 14:09:47 +02:00
Dmitry Timoshkov
3068ae8bce
include/wine/test.h: Fix tests compilation with a PSDK compiler.
2012-04-23 12:58:36 +02:00
Frédéric Delanoy
81bf925401
include: Assorted spelling fixes.
2011-07-28 18:37:40 +02:00
Alexandre Julliard
b14cfdeea4
tests: Run all tests with the default FPU control word.
2010-07-20 11:41:05 +02:00
Alexandre Julliard
89ad1f2615
tests: Print information about the last executed test before crashing.
2010-07-20 11:40:06 +02:00
Alexandre Julliard
e2c48c5952
tests: Try to avoid message boxes popping up in non-interactive testing.
2010-07-20 11:39:50 +02:00
Alexandre Julliard
cf42723602
tests: Use the correct format of varargs list when building with msvcrt.
2010-04-09 15:48:05 +02:00
Alexandre Julliard
69ee0ad151
tests: The ok() macro shouldn't return a value.
2010-02-24 16:48:07 +01:00
Mikołaj Zalewski
bc07b48b38
include: Add a strcmpW-equivalent function usable in tests.
2010-02-22 11:57:23 +01:00
Alexandre Julliard
ee868cce5b
tests: Make wine_dbgstr_w available in test.h for all tests.
2009-08-19 13:19:31 +02:00
Alexandre Julliard
d55bdc01d9
tests: When tracing is enabled, output the todo tests too.
2009-02-19 16:17:13 +01:00
Alexandre Julliard
fea2aa55d0
include: Fix the 64-bit value of magic handle constants.
2008-12-08 15:51:22 +01:00
Alexandre Julliard
b25eb5542a
test.h: Fetch environment variables from the Win32 environment not the Unix one.
2008-08-01 11:18:11 +02:00
Alexandre Julliard
4904c807d8
wine/test.h: Don't allow to use config.h in tests.
2008-07-08 21:29:28 +02:00
Francois Gouget
e767a2c04d
tests: Add a win_skip() function to allow for missing Windows functionality that must be present in Wine.
2008-06-11 11:26:28 +02:00
Alexandre Julliard
58b00da312
test.h: Add a space after the file name prefix.
2008-06-04 12:32:48 +02:00
Francois Gouget
812f72410f
tests: Add a broken() function to make it possible to handle Windows misbehaviors that we don't want to reproduce in Wine.
2008-05-30 10:01:18 +02:00
Rob Shearman
ce42c95a1c
winetest: Detect if an unhandled exception occurred in a child process and print an appropriate message.
...
Avoid getting caught incrementing the failure count in this case, as it
could take a very long time to complete.
2008-05-07 17:48:09 +02:00
Francois Gouget
2c6cba8eef
tests: Avoid InterlockedExchangeAdd() as it is not supported on Windows 95.
2008-02-11 19:56:16 +01:00
Alexandre Julliard
05c7174909
tests: Add a helper routine to wait for a child process and propagate its result correctly.
2008-02-07 12:56:00 +01:00
Dmitry Timoshkov
db552fbf4b
include/wine/test.h: Use appropriate type.
2007-08-22 12:18:59 +02:00
Alexandre Julliard
67a0e31da7
wine/test: Print the official name of the test in summary.
2007-03-01 20:42:48 +01:00
Francois Gouget
442fec32d0
tests: The non-gcc case was missing a forward declaration for winetest_skip().
2007-01-18 12:00:01 +01:00
Francois Gouget
d90879f10c
tests: Add skip(), a function to warn that tests were skipped due to limitations of the environment or missing dependencies.
2007-01-12 11:25:18 +01:00
Alexandre Julliard
80cff47c87
include: Get rid of the WINE_NO_LONG_AS_INT ifdefs.
2006-12-20 14:57:08 +01:00
Michael Stefaniuc
705b5a00c5
debug.h, test.h: Temporary add ifdefs around some printfs to avoid format.
2006-09-29 16:09:14 +02:00
Alexandre Julliard
fc4cd637d9
tests: Moved some compatibility defines to wine/test.h.
2006-09-13 11:01:39 +02:00
Alexandre Julliard
35e59151e9
include: Prevent internal Wine headers from being used in tests.
2006-05-25 20:07:57 +02:00
Jonathan Ernst
360a3f9142
Update the address of the Free Software Foundation.
2006-05-23 14:11:13 +02:00