msvcr100/tests: Build without -DWINE_NO_LONG_TYPES.
Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
61da3277c4
commit
52f7dcc555
|
@ -1,4 +1,3 @@
|
|||
EXTRADEFS = -DWINE_NO_LONG_TYPES
|
||||
TESTDLL = msvcr100.dll
|
||||
|
||||
C_SRCS = \
|
||||
|
|
|
@ -66,7 +66,7 @@ static void __cdecl test_invalid_parameter_handler(const wchar_t *expression,
|
|||
ok(function == NULL, "function is not NULL\n");
|
||||
ok(file == NULL, "file is not NULL\n");
|
||||
ok(line == 0, "line = %u\n", line);
|
||||
ok(arg == 0, "arg = %lx\n", (UINT_PTR)arg);
|
||||
ok(arg == 0, "arg = %Ix\n", arg);
|
||||
}
|
||||
|
||||
#ifdef __i386__
|
||||
|
@ -251,7 +251,7 @@ static BOOL init(void)
|
|||
SetLastError(0xdeadbeef);
|
||||
hcrt = LoadLibraryA("msvcr100.dll");
|
||||
if (!hcrt) {
|
||||
win_skip("msvcr100.dll not installed (got %d)\n", GetLastError());
|
||||
win_skip("msvcr100.dll not installed (got %ld)\n", GetLastError());
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -691,34 +691,34 @@ static void test__SpinWait(void)
|
|||
CHECK_CALLED(yield_func);
|
||||
|
||||
ul = call_func1(pSpinWait__NumberOfSpins, &sp);
|
||||
ok(ul == 1, "_SpinWait::_NumberOfSpins returned %u\n", ul);
|
||||
ok(ul == 1, "_SpinWait::_NumberOfSpins returned %lu\n", ul);
|
||||
|
||||
sp.spin = 2;
|
||||
b = call_func1(pSpinWait__ShouldSpinAgain, &sp);
|
||||
ok(b, "_SpinWait::_ShouldSpinAgain returned %x\n", b);
|
||||
ok(sp.spin == 1, "sp.spin = %u\n", sp.spin);
|
||||
ok(sp.spin == 1, "sp.spin = %lu\n", sp.spin);
|
||||
b = call_func1(pSpinWait__ShouldSpinAgain, &sp);
|
||||
ok(!b, "_SpinWait::_ShouldSpinAgain returned %x\n", b);
|
||||
ok(sp.spin == 0, "sp.spin = %u\n", sp.spin);
|
||||
ok(sp.spin == 0, "sp.spin = %lu\n", sp.spin);
|
||||
b = call_func1(pSpinWait__ShouldSpinAgain, &sp);
|
||||
ok(b, "_SpinWait::_ShouldSpinAgain returned %x\n", b);
|
||||
ok(sp.spin == -1, "sp.spin = %u\n", sp.spin);
|
||||
ok(sp.spin == -1, "sp.spin = %lu\n", sp.spin);
|
||||
|
||||
call_func2(pSpinWait__SetSpinCount, &sp, 2);
|
||||
b = call_func1(pSpinWait__SpinOnce, &sp);
|
||||
ok(b, "_SpinWait::_SpinOnce returned %x\n", b);
|
||||
ok(sp.spin == 1, "sp.spin = %u\n", sp.spin);
|
||||
ok(sp.spin == 1, "sp.spin = %lu\n", sp.spin);
|
||||
b = call_func1(pSpinWait__SpinOnce, &sp);
|
||||
ok(b, "_SpinWait::_SpinOnce returned %x\n", b);
|
||||
ok(sp.spin == 0, "sp.spin = %u\n", sp.spin);
|
||||
ok(sp.spin == 0, "sp.spin = %lu\n", sp.spin);
|
||||
SET_EXPECT(yield_func);
|
||||
b = call_func1(pSpinWait__SpinOnce, &sp);
|
||||
ok(b, "_SpinWait::_SpinOnce returned %x\n", b);
|
||||
ok(sp.spin == 0, "sp.spin = %u\n", sp.spin);
|
||||
ok(sp.spin == 0, "sp.spin = %lu\n", sp.spin);
|
||||
CHECK_CALLED(yield_func);
|
||||
b = call_func1(pSpinWait__SpinOnce, &sp);
|
||||
ok(!b, "_SpinWait::_SpinOnce returned %x\n", b);
|
||||
ok(sp.spin==0 || sp.spin==4000, "sp.spin = %u\n", sp.spin);
|
||||
ok(sp.spin==0 || sp.spin==4000, "sp.spin = %lu\n", sp.spin);
|
||||
|
||||
call_func1(pSpinWait_dtor, &sp);
|
||||
}
|
||||
|
@ -763,7 +763,7 @@ static void test_reader_writer_lock(void)
|
|||
|
||||
call_func1(preader_writer_lock_lock, rw_lock);
|
||||
thread = CreateThread(NULL, 0, lock_read_thread, rw_lock, 0, NULL);
|
||||
ok(thread != NULL, "CreateThread failed: %d\n", GetLastError());
|
||||
ok(thread != NULL, "CreateThread failed: %ld\n", GetLastError());
|
||||
WaitForSingleObject(thread, INFINITE);
|
||||
ok(GetExitCodeThread(thread, &d), "GetExitCodeThread failed\n");
|
||||
ok(!d, "reader_writer_lock::try_lock_read succeeded on already locked object\n");
|
||||
|
@ -772,7 +772,7 @@ static void test_reader_writer_lock(void)
|
|||
|
||||
call_func1(preader_writer_lock_lock_read, rw_lock);
|
||||
thread = CreateThread(NULL, 0, lock_read_thread, rw_lock, 0, NULL);
|
||||
ok(thread != NULL, "CreateThread failed: %d\n", GetLastError());
|
||||
ok(thread != NULL, "CreateThread failed: %ld\n", GetLastError());
|
||||
WaitForSingleObject(thread, INFINITE);
|
||||
ok(GetExitCodeThread(thread, &d), "GetExitCodeThread failed\n");
|
||||
ok(d, "reader_writer_lock::try_lock_read failed on object locked for reading\n");
|
||||
|
@ -951,7 +951,7 @@ static void test_ExternalContextBase(void)
|
|||
ok(id == 0, "Context::Id() = %u\n", id);
|
||||
|
||||
thread = CreateThread(NULL, 0, external_context_thread, NULL, 0, NULL);
|
||||
ok(thread != NULL, "CreateThread failed: %d\n", GetLastError());
|
||||
ok(thread != NULL, "CreateThread failed: %ld\n", GetLastError());
|
||||
WaitForSingleObject(thread, INFINITE);
|
||||
CloseHandle(thread);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue