mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-06 13:30:00 +00:00
test(libSceRtc): cover sceRtcInit and sceRtcEnd lifecycle
This commit is contained in:
1 parent
2f161d4f33
commit
6b80e0db06
1 file changed
+4
@@ -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(¤t) == 0 && current.tick >= debugClock.tick && current.tick < debugClock.tick + 1000000);
|
||||
Require(sceRtcGetCurrentRawNetworkTick(¤t) == 0 && current.tick > unixEpochTick);
|
||||
}
|
||||
Require(sceRtcInit() == 0);
|
||||
Require(sceRtcEnd() == 0);
|
||||
}
|
||||
Reference in new issue
Block a user