Commit graph

161657 commits

Author SHA1 Message Date
Ziqing Hui ae32fb465e mfplat/tests: Add MEDIASUBTYPE_RGB* and NV11 image size tests. 2022-12-21 18:24:38 +01:00
Gabriel Ivăncescu aa7f3b1ef6 jscript: Fix JSCaller Release refcount.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2022-12-20 22:39:25 +01:00
Paul Gofman 3f51fcf8ac winhttp: Only read server reply in send_request() if the whole request is sent.
Fixes a regression introduced by
aa8f97e829.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54184
2022-12-20 22:37:03 +01:00
Paul Gofman 2677546e0a winhttp: Handle state in a single switch in receive_response(). 2022-12-20 22:37:03 +01:00
Gerald Pfeifer 940d13db36 winebus.sys: Declare a variable only when used.
udev_add_device declares a variable (product) even when it is not used
on all platforms. Use the same condition for the declaration that already
guards the code.
2022-12-20 22:37:03 +01:00
Gerald Pfeifer 4bbdbc759a wmc: Avoid uninitialized variable in init_argv0_dir.
init_argv0_dir has conditional code for different operating systems. In
case of FreeBSD a variable remains uninitialized in the error case, yet
is then used. Fix that by handling the error case.
2022-12-20 22:37:02 +01:00
Alexandre Julliard 9761191f1c d3d8/tests: Make sure that the window has focus before testing loss of focus. 2022-12-20 22:37:02 +01:00
Alexandre Julliard 971ef0d3b3 d3d8/tests: Don't require WM_MOVE on window reactivation.
It can be activated without moving.
2022-12-20 22:37:02 +01:00
Zebediah Figura 266c855fbd httpapi/tests: Test passing NULL size to request reading functions. 2022-12-20 22:37:02 +01:00
Zebediah Figura c9f6280422 httpapi: Allow passing NULL size to HttpReceiveRequestEntityBody(). 2022-12-20 22:37:02 +01:00
Zebediah Figura d1d37e40d2 httpapi: Allow passing NULL size to HttpReceiveHttpRequest().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53980
2022-12-20 22:37:02 +01:00
Eric Pouech f5a81ff02a kernel32/tests: Silence a failing test on Win10+.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-12-20 22:37:02 +01:00
Ziqing Hui 3eaa44a75c mf/tests: Test SetOutputType for WMV decoder. 2022-12-20 22:37:02 +01:00
Ziqing Hui 9c4bcbea00 mf/tests: Use one input type for GetOutputType tests. 2022-12-20 22:37:02 +01:00
Ziqing Hui 6353af03d3 mf/tests: Introduce check_dmo_set_input_type. 2022-12-20 22:37:02 +01:00
Ziqing Hui 5b67e30fd8 mf/tests: Shorten test messages. 2022-12-20 22:37:02 +01:00
Eric Pouech 0a7c04816f conhost: Don't print control characters for Unix tty.
They will be reinterpreted by Unix tty, leading to wrong display.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-12-20 22:37:02 +01:00
Eric Pouech 26699b3630 kernel32/tests: Test that control characters can be read & stored.
WriteConsole (not in processed mode) and WriteConsoleOutput* functions
allow to write control characters, which can then be read back as is.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-12-20 22:37:02 +01:00
Jacek Caban 4a415b0c56 win32u/tests: Add inter-process message tests. 2022-12-20 22:37:00 +01:00
Jacek Caban d222dcc2a4 win32u: Convert inter-process messages to Unicode.
Based on user32 WINPROC_CallProcWtoA.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53744
2022-12-20 18:26:55 +01:00
Paul Gofman 2b0cd25b5f winhttp: Check for NULL lpszAutoConfigUrl in WinHttpGetProxyForUrl().
Fixes a regression introduced by
cbfe940a1e.
2022-12-19 22:25:19 +01:00
Alexandre Julliard 1efcbeacf1 d3d9/tests: Mark some of the depth bias tests as todo.
They fail on the Gitlab CI.
2022-12-19 22:25:19 +01:00
Alexandre Julliard ab8d0dafde d3d9/tests: Mark a zero-size pixel test as todo.
It fails on the Gitlab CI.
2022-12-19 22:25:19 +01:00
Alexandre Julliard 28eafda808 d3d8/tests: Mark a zero-size pixel test as todo.
It fails on the Gitlab CI.
2022-12-19 22:25:19 +01:00
Alexandre Julliard 501ac4d496 ntdll: Match a timezone change happening at 23:59:59 with the following day.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53595
2022-12-19 22:25:15 +01:00
Rémi Bernon 29b437a53a user32/tests: Test GetPointer(Frame)Info(History) behavior. 2022-12-19 19:27:09 +01:00
Rémi Bernon 389bbf8fbb user32/tests: Move old GetPointerType tests into test_GetPointerInfo. 2022-12-19 19:27:09 +01:00
Rémi Bernon d4aaf27333 user32/tests: Test GetPointerInfo behavior with EnableMouseInPointer. 2022-12-19 19:27:09 +01:00
Rémi Bernon eb68155889 user32/tests: Test IsMouseInPointerEnabled behavior. 2022-12-19 19:27:09 +01:00
Rémi Bernon 73d6140d71 user32/tests: Test EnableMouseInPointer behavior. 2022-12-19 19:27:09 +01:00
Rémi Bernon eefc7a86ac dinput/tests: Wait for each device interface to start / stop.
Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=53525
2022-12-19 19:27:09 +01:00
Rémi Bernon 2bae0cb5f2 dinput/tests: Add a device count parameter to hid_device_(start|stop). 2022-12-19 19:27:09 +01:00
Rémi Bernon 15630ab443 dinput/tests: Use semaphores to count and notify rawinput messages. 2022-12-19 19:27:09 +01:00
Rémi Bernon 43814ac480 dinput/tests: Avoid using INFINITE timeouts. 2022-12-19 19:27:09 +01:00
Rémi Bernon 8454e2e730 dinput/tests: Remove old physical joystick tests.
They are now pretty much superseded by the more extensive tests in
joystick8.c, using virtual devices.
2022-12-19 19:27:09 +01:00
Rémi Bernon 4a5c9f7dc6 dinput/tests: Unregister rawinput devices after tests. 2022-12-19 19:27:09 +01:00
Rémi Bernon 5225aabd07 hidclass.sys: Make sure a desktop is created for the driver process.
This was previously automatically done when user32 was loaded, but since
the move of __wine_send_input to win32u, we do not need to load it any
more. Make sure we have a desktop or WM_INPUT messages won't be sent by
wineserver.
2022-12-19 19:27:09 +01:00
Huw Davies c28258039b ntdll: Only compile get_current_teb() on linux. 2022-12-19 11:10:43 +01:00
Ryan Hendrickson 07ca9e9a81 wined3d: Recognize AMD as a vendor string. 2022-12-19 11:10:34 +01:00
Michael Stefaniuc 3f0afe8e5c dmcompos: Return a valid pointer from ComposeSegmentFromTemplate().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53941
2022-12-19 11:10:28 +01:00
Michael Stefaniuc c92d01016b dmime: Implement the IDirectMusicSegment8_Clone() method.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53941
2022-12-19 11:10:28 +01:00
Michael Stefaniuc 354ccf3fdb dmime: Split the segment object creation into a separate helper. 2022-12-19 11:10:28 +01:00
Akihiro Sagawa 2b1cfcd011 po: Update Japanese translation. 2022-12-19 11:09:42 +01:00
Gerald Pfeifer 208b824ecd libwine: Only define exe_link when needed.
Revision 24b26f8bd6 changed FreeBSD
(and DragonFly) not to use /proc any longer. Hence we also do not
need the exe_link variable on those two platforms, either. Avoid
declaring it there.

(This avoids a compiler warning with GCC 12.)
2022-12-19 11:09:39 +01:00
Gerald Pfeifer 443805b10a winebus.sys: Fix the build without HAVE_SYS_INOTIFY_H.
find_device_from_devnode was unnecessarily guarded by HAVE_SYS_INOTIFY_H,
alas its use in process_monitor_event was not, so linking failed. Simply
make find_device_from_devnode generally available.
2022-12-19 11:08:05 +01:00
Eric Pouech 17e5ff7430 kernel32/tests: Handle some variations in process start debug events.
Win10 and Win11 can have some variations in debug events order
(linked to when thread start debug event are generated).

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54159
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-12-16 18:50:52 +01:00
Eric Pouech 2486f5a002 kernel32/tests: Improve loading of debugger's test children results.
Even if there's a synchronisation mechanism between kernel32:debugger
and its children which ensures that child has finished writing to and
closed the blackbox logging file before reading it, there's no
guarantee that the file is not re-opened by another process: antivirus,
file indexing...
And according to [1], even the OS itself can still have opened references
to it.

So, always open/read the blackbox file in read share mode to work around
this issue.

Also, harden the code for potential errors, and be nicer in where
failures come from.

[1] https://learn.microsoft.com/en-us/windows-hardware/drivers/ifs/irp-mj-cleanup

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53456
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-12-16 18:50:50 +01:00
Eric Pouech 2acacb83d1 kernel32/tests: Fix failing debugger test on Win7.
Investigating the test failures in MR!1823, it turns out
that sometimes in Win7, at process exit, not all the dll unload
debug events are sent (in traces, only the last loaded dll gets the
event).
I don't know what it only shows now :-(, but that seems very
replicable (it happens every time with new job to TestBot).

So mark the case of missing unload dll debug event as broken
(still checking that the load dll debug event has been received).

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-12-16 18:50:43 +01:00
Rémi Bernon c20d32d392 user32/tests: Use %d to print last_bpp instead of %u. 2022-12-16 18:48:36 +01:00
Rémi Bernon e2bc3bc40d user32/tests: Don't expect WM_DISPLAYCHANGE with the default display mode.
It looks like the behavior changes when only this test is run vs when it
is run as part of the winetest suite.

This is probably because ChangeDisplaySettingsExW only sends the message
the first time it is called (since boot?).

Having other tests run before it, one of them probably changed display
settings already and we're not getting the message anymore.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53894
2022-12-16 18:48:34 +01:00