Eric Pouech : wscript/tests: Enable compilation with long types.
Alexandre Julliard
julliard at winehq.org
Thu Feb 3 16:06:56 CST 2022
Module: wine
Branch: master
Commit: 63a9879aef5fee88779d271f5626f971bcc25542
URL: https://source.winehq.org/git/wine.git/?a=commit;h=63a9879aef5fee88779d271f5626f971bcc25542
Author: Eric Pouech <eric.pouech at gmail.com>
Date: Thu Feb 3 12:04:46 2022 +0100
wscript/tests: Enable compilation with long types.
Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
programs/wscript/tests/Makefile.in | 1 -
programs/wscript/tests/run.c | 14 +++++++-------
2 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/programs/wscript/tests/Makefile.in b/programs/wscript/tests/Makefile.in
index bdb231353b7..1f038b04588 100644
--- a/programs/wscript/tests/Makefile.in
+++ b/programs/wscript/tests/Makefile.in
@@ -1,4 +1,3 @@
-EXTRADEFS = -DWINE_NO_LONG_TYPES
TESTDLL = wscript.exe
IMPORTS = ole32 oleaut32 psapi advapi32
diff --git a/programs/wscript/tests/run.c b/programs/wscript/tests/run.c
index dbd10f537a7..7bccf097f87 100644
--- a/programs/wscript/tests/run.c
+++ b/programs/wscript/tests/run.c
@@ -260,7 +260,7 @@ static HRESULT WINAPI Dispatch_Invoke(IDispatch *iface, DISPID dispIdMember, REF
break;
}
default:
- ok(0, "unexpected dispIdMember %d\n", dispIdMember);
+ ok(0, "unexpected dispIdMember %ld\n", dispIdMember);
return E_NOTIMPL;
}
@@ -345,8 +345,8 @@ static void run_script_file(const char *file_name, DWORD expected_exit_code)
WaitForSingleObject(pi.hProcess, INFINITE);
bres = GetExitCodeProcess(pi.hProcess, &exit_code);
- ok(bres, "GetExitCodeProcess failed: %u\n", GetLastError());
- ok(exit_code == expected_exit_code, "exit_code = %u, expected %u\n", exit_code, expected_exit_code);
+ ok(bres, "GetExitCodeProcess failed: %lu\n", GetLastError());
+ ok(exit_code == expected_exit_code, "exit_code = %lu, expected %lu\n", exit_code, expected_exit_code);
CloseHandle(pi.hThread);
CloseHandle(pi.hProcess);
@@ -371,13 +371,13 @@ static void run_script(const char *name, const char *script_data, size_t script_
file = CreateFileA(file_name, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS,
FILE_ATTRIBUTE_NORMAL, NULL);
- ok(file != INVALID_HANDLE_VALUE, "CreateFile failed: %u\n", GetLastError());
+ ok(file != INVALID_HANDLE_VALUE, "CreateFile failed: %lu\n", GetLastError());
if(file == INVALID_HANDLE_VALUE)
return;
res = WriteFile(file, script_data, script_size, &size, NULL);
CloseHandle(file);
- ok(res, "Could not write to file: %u\n", GetLastError());
+ ok(res, "Could not write to file: %lu\n", GetLastError());
if(!res)
return;
@@ -400,7 +400,7 @@ static BOOL WINAPI test_enum_proc(HMODULE module, LPCSTR type, LPSTR name, LONG_
trace("running %s test...\n", name);
src = FindResourceA(NULL, name, type);
- ok(src != NULL, "Could not find resource %s: %u\n", name, GetLastError());
+ ok(src != NULL, "Could not find resource %s: %lu\n", name, GetLastError());
if(!src)
return TRUE;
@@ -451,7 +451,7 @@ static BOOL register_activex(void)
hres = CoRegisterClassObject(&CLSID_TestObj, (IUnknown *)&testobj_cf,
CLSCTX_SERVER, REGCLS_MULTIPLEUSE, ®id);
- ok(hres == S_OK, "Could not register script engine: %08x\n", hres);
+ ok(hres == S_OK, "Could not register script engine: %08lx\n", hres);
return TRUE;
}
More information about the wine-cvs
mailing list