rasapi32: Skip RasEnumDevicesA tests on configuration problems.
This commit is contained in:
parent
cc494c48af
commit
548abf369d
|
@ -55,7 +55,11 @@ static void test_rasenum(void)
|
|||
|
||||
/* create the return buffer */
|
||||
result = pRasEnumDevicesA(NULL, &bufsize, &cDevices);
|
||||
trace("RasEnumDevicesA: buffersize %d\n", cb);
|
||||
if(ERROR_RASMAN_CANNOT_INITIALIZE == result) {
|
||||
win_skip("RAS configuration problem\n");
|
||||
return;
|
||||
}
|
||||
trace("RasEnumDevicesA: returned %d buffersize %d\n", result, cb);
|
||||
ok(result == ERROR_BUFFER_TOO_SMALL,
|
||||
"Expected ERROR_BUFFER_TOO_SMALL, got %08d\n", result);
|
||||
|
||||
|
|
|
@ -22,5 +22,6 @@
|
|||
#define RASBASE 600
|
||||
#define ERROR_BUFFER_TOO_SMALL (RASBASE+3)
|
||||
#define ERROR_INVALID_SIZE (RASBASE+32)
|
||||
#define ERROR_RASMAN_CANNOT_INITIALIZE (RASBASE+111)
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue