mirror of
https://github.com/reactos/reactos.git
synced 2026-07-01 00:34:18 +08:00
[KMTEST] Handle failure in KmtLoadDriver and KmtOpenDriver
This commit is contained in:
@@ -22,12 +22,14 @@ START_TEST(HidPDescription)
|
||||
KmtStartService(L"hidusb", &ServiceHandle);
|
||||
CloseServiceHandle(ServiceHandle);
|
||||
|
||||
KmtLoadDriver(L"HidP", FALSE);
|
||||
KmtOpenDriver();
|
||||
Error = KmtLoadAndOpenDriver(L"HidP", FALSE);
|
||||
ok_eq_int(Error, ERROR_SUCCESS);
|
||||
if (Error)
|
||||
return;
|
||||
|
||||
Error = KmtSendToDriver(IOCTL_TEST_DESCRIPTION);
|
||||
ok(Error == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %lx\n", Error);
|
||||
|
||||
KmtCloseDriver();
|
||||
KmtUnloadDriver();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user