>From bc52ed85cc0d3c9e232755d08641d984dff2ece6 Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Sun, 21 Sep 2008 20:12:49 +0200 Subject: [PATCH] Skip tests after first failure --- dlls/ntdll/tests/atom.c | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/dlls/ntdll/tests/atom.c b/dlls/ntdll/tests/atom.c index bc5fe2a..ec703d4 100644 --- a/dlls/ntdll/tests/atom.c +++ b/dlls/ntdll/tests/atom.c @@ -266,7 +266,9 @@ static void test_NtAtom(void) Len = 0; res = pRtlQueryAtomInAtomTable(AtomTable, Atom1, NULL, NULL, Name, &Len); ok(res == STATUS_BUFFER_TOO_SMALL, "Got wrong retval, retval: %x\n", res); - ok((lstrlenW(testAtom1) * sizeof(WCHAR)) == Len, "Got wrong length %x\n", Len); + ok((lstrlenW(testAtom1) * sizeof(WCHAR)) == Len || + broken(Len == 0), /* NT4 */ + "Got wrong length %x\n", Len); res = pRtlPinAtomInAtomTable(AtomTable, Atom1); ok(!res, "Unable to pin atom in atom table, retval: %x\n", res); @@ -434,6 +436,11 @@ static void test_Global(void) ULONG ptr_size = sizeof(ATOM_BASIC_INFORMATION) + 255 * sizeof(WCHAR); res = pNtAddAtom(testAtom1, lstrlenW(testAtom1) * sizeof(WCHAR), &atom); + if (res == STATUS_ACCESS_VIOLATION) + { + skip("NtAddAtom failed (NT4?), the rest would also fail\n"); + return; + } ok(!res, "Added atom (%x)\n", res); memset(abi->Name, 0xcc, 255 * sizeof(WCHAR)); -- 1.5.5.1