From 04bdc8c7e7ec3433bc5aec8403c8d742e592f257 Mon Sep 17 00:00:00 2001 From: PrivacyOnion Date: Tue, 27 Oct 2026 18:16:54 +0100 Subject: [PATCH] test(libSceScreenShot): cover positive IDs in sceScreenShotIsDisabled Cover positive IDs 1 and 2 in sceScreenShotIsDisabled in GuestScreenShot. --- core/libs/tests/GuestScreenShot.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/libs/tests/GuestScreenShot.cpp b/core/libs/tests/GuestScreenShot.cpp index 47e86f8874..d947dd67e1 100644 --- a/core/libs/tests/GuestScreenShot.cpp +++ b/core/libs/tests/GuestScreenShot.cpp @@ -67,6 +67,8 @@ void TestDisableState() { Require(sceScreenShotIsDisabled(-1, &value) == ErrorArgument && value == 7, "id -1 is rejected"); Require(sceScreenShotIsDisabled(0, nullptr) == ErrorArgument, "null result is rejected"); Require(sceScreenShotDisableNotification() == 0 && sceScreenShotEnableNotification() == 0, "notification toggles"); + Require(sceScreenShotIsDisabled(1, &value) == 0 && value == 0, "positive id 1 is accepted"); + Require(sceScreenShotIsDisabled(2, &value) == 0 && value == 0, "positive id 2 is accepted"); } void TestOverlay(bool large) {