mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
tests: Print the file name instead of the test name in test logs.
Some test programs, particularly the shader runner, are built from many different files nowadays, and a line number is relatively cumbersome to use if you don't know which file that line comes from.
This commit is contained in:
committed by
Henri Verbeet
parent
73be28a252
commit
3264378fa0
Notes:
Henri Verbeet
2024-12-03 14:55:39 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1221
@@ -22,18 +22,18 @@ VKD3D_AGILITY_SDK_EXPORTS
|
||||
|
||||
struct test_options test_options = {0};
|
||||
|
||||
#define recreate_command_list(a, b, c) recreate_command_list_(__LINE__, a, b, c)
|
||||
static void recreate_command_list_(unsigned int line, ID3D12Device *device,
|
||||
#define recreate_command_list(a, b, c) recreate_command_list_(__FILE__, __LINE__, a, b, c)
|
||||
static void recreate_command_list_(const char *file, unsigned int line, ID3D12Device *device,
|
||||
ID3D12CommandAllocator *allocator, ID3D12GraphicsCommandList **command_list)
|
||||
{
|
||||
HRESULT hr;
|
||||
|
||||
hr = ID3D12CommandAllocator_Reset(allocator);
|
||||
ok_(line)(hr == S_OK, "Failed to reset command allocator, hr %#x.\n", hr);
|
||||
ok_(file, line)(hr == S_OK, "Failed to reset command allocator, hr %#x.\n", hr);
|
||||
ID3D12GraphicsCommandList_Release(*command_list);
|
||||
hr = ID3D12Device_CreateCommandList(device, 0, D3D12_COMMAND_LIST_TYPE_DIRECT,
|
||||
allocator, NULL, &IID_ID3D12GraphicsCommandList, (void **)command_list);
|
||||
ok_(line)(hr == S_OK, "Failed to create command list, hr %#x.\n", hr);
|
||||
ok_(file, line)(hr == S_OK, "Failed to create command list, hr %#x.\n", hr);
|
||||
}
|
||||
|
||||
static void test_invalid_resource_barriers(void)
|
||||
|
||||
Reference in New Issue
Block a user