faultrep/tests: Enable compilation with long types.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Eric Pouech 2022-02-24 11:29:40 +01:00 committed by Alexandre Julliard
parent c8431d97bd
commit e913d34eb2
2 changed files with 4 additions and 5 deletions

View File

@ -1,4 +1,3 @@
EXTRADEFS = -DWINE_NO_LONG_TYPES
TESTDLL = faultrep.dll
IMPORTS = faultrep advapi32

View File

@ -82,11 +82,11 @@ static void test_AddERExcludedApplicationA(void)
SetLastError(0xdeadbeef);
res = AddERExcludedApplicationA(NULL);
ok(!res, "got %d and 0x%x (expected FALSE)\n", res, GetLastError());
ok(!res, "got %d and 0x%lx (expected FALSE)\n", res, GetLastError());
SetLastError(0xdeadbeef);
res = AddERExcludedApplicationA("");
ok(!res, "got %d and 0x%x (expected FALSE)\n", res, GetLastError());
ok(!res, "got %d and 0x%lx (expected FALSE)\n", res, GetLastError());
SetLastError(0xdeadbeef);
/* existence of the path doesn't matter this function succeeded */
@ -99,12 +99,12 @@ static void test_AddERExcludedApplicationA(void)
}
else
{
ok(res, "AddERExcludedApplicationA failed (le=0x%x)\n", GetLastError());
ok(res, "AddERExcludedApplicationA failed (le=0x%lx)\n", GetLastError());
/* add, when already present */
SetLastError(0xdeadbeef);
res = AddERExcludedApplicationA("winetest_faultrep.exe");
ok(res, "AddERExcludedApplicationA failed (le=0x%x)\n", GetLastError());
ok(res, "AddERExcludedApplicationA failed (le=0x%lx)\n", GetLastError());
}
/* cleanup */