mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
tests: Properly print 64-bit unsigned integers.
Use PRIu64 since we use C99.
This commit is contained in:
parent
6dcd930408
commit
6330c9f46a
@ -23,6 +23,7 @@
|
||||
#ifndef __VKD3D_TEST_H
|
||||
#define __VKD3D_TEST_H
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -1131,7 +1131,7 @@ static void test_create_fence(void)
|
||||
check_interface(fence, &IID_ID3D12Fence, TRUE);
|
||||
|
||||
value = ID3D12Fence_GetCompletedValue(fence);
|
||||
ok(value == 0, "Got unexpected value %lu.\n", (unsigned long)value);
|
||||
ok(value == 0, "Got unexpected value %"PRIu64".\n", value);
|
||||
|
||||
refcount = ID3D12Fence_Release(fence);
|
||||
ok(!refcount, "ID3D12Fence has %u references left.\n", (unsigned int)refcount);
|
||||
@ -1140,7 +1140,7 @@ static void test_create_fence(void)
|
||||
&IID_ID3D12Fence, (void **)&fence);
|
||||
ok(SUCCEEDED(hr), "CreateFence failed, hr %#x.\n", hr);
|
||||
value = ID3D12Fence_GetCompletedValue(fence);
|
||||
ok(value == 99, "Got unexpected value %lu.\n", (unsigned long)value);
|
||||
ok(value == 99, "Got unexpected value %"PRIu64".\n", value);
|
||||
refcount = ID3D12Fence_Release(fence);
|
||||
ok(!refcount, "ID3D12Fence has %u references left.\n", (unsigned int)refcount);
|
||||
|
||||
@ -1228,22 +1228,22 @@ static void test_cpu_signal_fence(void)
|
||||
hr = ID3D12Fence_Signal(fence, 1);
|
||||
ok(SUCCEEDED(hr), "Signal failed, hr %#x.\n", hr);
|
||||
value = ID3D12Fence_GetCompletedValue(fence);
|
||||
ok(value == 1, "Got unexpected value %lu.\n", (unsigned long)value);
|
||||
ok(value == 1, "Got unexpected value %"PRIu64".\n", value);
|
||||
|
||||
hr = ID3D12Fence_Signal(fence, 10);
|
||||
ok(SUCCEEDED(hr), "Signal failed, hr %#x.\n", hr);
|
||||
value = ID3D12Fence_GetCompletedValue(fence);
|
||||
ok(value == 10, "Got unexpected value %lu.\n", (unsigned long)value);
|
||||
ok(value == 10, "Got unexpected value %"PRIu64".\n", value);
|
||||
|
||||
hr = ID3D12Fence_Signal(fence, 5);
|
||||
ok(SUCCEEDED(hr), "Signal failed, hr %#x.\n", hr);
|
||||
value = ID3D12Fence_GetCompletedValue(fence);
|
||||
ok(value == 5, "Got unexpected value %lu.\n", (unsigned long)value);
|
||||
ok(value == 5, "Got unexpected value %"PRIu64".\n", value);
|
||||
|
||||
hr = ID3D12Fence_Signal(fence, 0);
|
||||
ok(SUCCEEDED(hr), "Signal failed, hr %#x.\n", hr);
|
||||
value = ID3D12Fence_GetCompletedValue(fence);
|
||||
ok(value == 0, "Got unexpected value %lu.\n", (unsigned long)value);
|
||||
ok(value == 0, "Got unexpected value %"PRIu64".\n", value);
|
||||
|
||||
/* Basic tests with single event. */
|
||||
event1 = create_event();
|
||||
@ -1336,7 +1336,7 @@ static void test_cpu_signal_fence(void)
|
||||
hr = ID3D12Fence_Signal(fence, 0);
|
||||
ok(SUCCEEDED(hr), "Signal failed, hr %#x.\n", hr);
|
||||
value = ID3D12Fence_GetCompletedValue(fence);
|
||||
ok(value == 0, "Got unexpected value %lu.\n", (unsigned long)value);
|
||||
ok(value == 0, "Got unexpected value %"PRIu64".\n", value);
|
||||
|
||||
event2 = create_event();
|
||||
ok(!!event2, "Failed to create event.\n");
|
||||
@ -1447,7 +1447,7 @@ static void test_cpu_signal_fence(void)
|
||||
hr = ID3D12Fence_Signal(fence, 20);
|
||||
ok(SUCCEEDED(hr), "Signal failed, hr %#x.\n", hr);
|
||||
value = ID3D12Fence_GetCompletedValue(fence);
|
||||
ok(value == 20, "Got unexpected value %lu.\n", (unsigned long)value);
|
||||
ok(value == 20, "Got unexpected value %"PRIu64".\n", value);
|
||||
ret = wait_event(event1, 0);
|
||||
ok(ret == WAIT_TIMEOUT, "Got unexpected return value %#x.\n", ret);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user