79514: kernel32/tests: Check what happens if QueryDosDeviceA() is given an insufficient buffer.

buildbot at kegel.com buildbot at kegel.com
Mon Oct 3 17:34:18 CDT 2011


This is an experimental automated build and test service.
Please feel free to ignore this email while we work the kinks out.

For more info about this message, see http://wiki.winehq.org/BuildBot

The Buildbot has detected a failed build on builder runtests-default while building Wine.
Full details are available at: http://buildbot.kegel.com/builders/runtests-default/builds/202 (though maybe not for long, as I'm still reinstalling the buildbot periodically while experimenting)
BUILD FAILED: failed git

Errors:
error: patch failed: dlls/kernel32/tests/volume.c:44
error: dlls/kernel32/tests/volume.c: patch does not apply

-------------- next part --------------
From: Francois Gouget <fgouget at codeweavers.com>
Subject: kernel32/tests: Check what happens if QueryDosDeviceA() is given an insufficient buffer.
Message-Id: <alpine.DEB.2.02.1110032338460.27645 at amboise.dolphin>
Date: Mon, 3 Oct 2011 23:39:10 +0200 (CEST)

---
 dlls/kernel32/tests/volume.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/dlls/kernel32/tests/volume.c b/dlls/kernel32/tests/volume.c
index 6f0fd67..2755af5 100644
--- a/dlls/kernel32/tests/volume.c
+++ b/dlls/kernel32/tests/volume.c
@@ -44,6 +44,12 @@ static void test_query_dos_deviceA(void)
     DWORD ret, ret2, buflen=32768;
     BOOL found = FALSE;
 
+    /* callers must guess the buffer size */
+    SetLastError(0xdeadbeef);
+    ret = QueryDosDeviceA( NULL, NULL, 0 );
+    ok(!ret && GetLastError() == ERROR_INSUFFICIENT_BUFFER,
+       "QueryDosDeviceA(no buffer): returned %u, le=%u\n", ret, GetLastError());
+
     buffer = HeapAlloc( GetProcessHeap(), 0, buflen );
     SetLastError(0xdeadbeef);
     ret = QueryDosDeviceA( NULL, buffer, buflen );
-- 
1.7.6.3



More information about the wine-tests-results mailing list