mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-04 13:07:32 +00:00
Merge pull request #11759 from heditrigui/test/playgo-dialog-coverage
test(libScePlayGoDialog): cover uninitialized and finished dialog calls
This commit is contained in:
1 file changed
+10
@@ -38,6 +38,8 @@ int main() {
|
||||
Require(scePlayGoDialogOpen(&openParam) == 0);
|
||||
Require(scePlayGoDialogGetStatus() == 3);
|
||||
Require(scePlayGoDialogUpdateStatus() == 3);
|
||||
Require(scePlayGoDialogOpen(nullptr) == paramInvalid);
|
||||
Require(scePlayGoDialogOpen(&openParam) == 0);
|
||||
|
||||
PlayGoDialogResult result{};
|
||||
Require(scePlayGoDialogGetResult(&result) == 0);
|
||||
@@ -51,5 +53,13 @@ int main() {
|
||||
Require(scePlayGoDialogTerminate() == 0);
|
||||
Require(scePlayGoDialogGetStatus() == 0);
|
||||
Require(scePlayGoDialogTerminate() == notInitialized);
|
||||
Require(scePlayGoDialogClose() == notInitialized);
|
||||
Require(scePlayGoDialogOpen(nullptr) == paramInvalid);
|
||||
Require(scePlayGoDialogOpen(&openParam) == notInitialized);
|
||||
Require(scePlayGoDialogGetResult(nullptr) == paramInvalid);
|
||||
Require(scePlayGoDialogGetResult(&result) == static_cast<std::int32_t>(0x80B8000Au));
|
||||
result.reserved[0] = 0;
|
||||
Require(scePlayGoDialogGetResult(&result) == notInitialized);
|
||||
Require(scePlayGoDialogUpdateStatus() == 0);
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user