mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-18 23:07:07 -05:00
Merge pull request #5880 from ErenYeager1836/test/cpu-temperature-probe-coverage
test(libkernel): cover valid probe in cpu temperature guest test
This commit is contained in:
1 file changed
+3
@@ -73,6 +73,9 @@ int main() {
|
||||
int probe = -12345;
|
||||
const int result = sceKernelGetSocSensorTemperature(0, &probe);
|
||||
Require(result == 0 ? (probe >= 0 && probe <= 130) : (result == SCE_KERNEL_ERROR_EINVAL && probe == -12345));
|
||||
int cpuProbe = -12345;
|
||||
const int cpuResult = sceKernelGetCpuTemperature(&cpuProbe);
|
||||
Require(cpuResult == 0 ? (cpuProbe >= 0 && cpuProbe <= 130) : (cpuResult == SCE_KERNEL_ERROR_EINVAL && cpuProbe == -12345));
|
||||
|
||||
Require(sceKernelGetSocPowerConsumption(nullptr) == SCE_KERNEL_ERROR_EFAULT);
|
||||
std::uint32_t consumption[32];
|
||||
|
||||
Reference in new issue
Block a user