mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 06:26:00 +00:00
[KMTEST] Handle failure in KmtLoadDriver and KmtOpenDriver
This commit is contained in:
parent
53de4fd93e
commit
9e12af569f
19 changed files with 126 additions and 58 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue