test(libSceRtc): cover sceRtcInit and sceRtcEnd lifecycle

This commit is contained in:
al3w0f205 committed 2026-10-21 17:46:58 -05:00
1 parent 2f161d4f33
commit 6b80e0db06
1 file changed
+4
+4
View File
@@ -67,6 +67,8 @@ int APS5_VABI sceRtcSetCurrentTick(const RtcTick*);
int APS5_VABI sceRtcSetCurrentNetworkTick(const RtcTick*);
int APS5_VABI sceRtcSetCurrentAdNetworkTick(const RtcTick*);
int APS5_VABI sceRtcSetCurrentDebugNetworkTick(const RtcTick*);
int APS5_VABI sceRtcInit(void);
int APS5_VABI sceRtcEnd(void);
}
static void Require(bool value) { if (!value) std::abort(); }
@@ -891,4 +893,6 @@ int main() {
Require(sceRtcGetCurrentDebugNetworkTick(&current) == 0 && current.tick >= debugClock.tick && current.tick < debugClock.tick + 1000000);
Require(sceRtcGetCurrentRawNetworkTick(&current) == 0 && current.tick > unixEpochTick);
}
Require(sceRtcInit() == 0);
Require(sceRtcEnd() == 0);
}