From 81e25a133d97cb710209344df0986bf4c84602a9 Mon Sep 17 00:00:00 2001 From: tkcm01 <75453983+tkcm01@users.noreply.github.com> Date: Wed, 28 Oct 2026 01:10:34 -0400 Subject: [PATCH] test(agc): register the priority refusal tests on Linux only The three tests make rtkit refuse the request by pointing DBUS_SYSTEM_BUS_ADDRESS at nothing. Only the Linux priority path asks rtkit; on macOS an unprivileged thread gets the user-interactive QoS class and the Mach time-constraint policy, so nothing is refused and the tests fail. Co-Authored-By: iamthehimansh <67262056+iamthehimansh@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 --- core/libs/prx/libSceAgcDriver/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/libs/prx/libSceAgcDriver/CMakeLists.txt b/core/libs/prx/libSceAgcDriver/CMakeLists.txt index a902a0a239..bd3630cec0 100644 --- a/core/libs/prx/libSceAgcDriver/CMakeLists.txt +++ b/core/libs/prx/libSceAgcDriver/CMakeLists.txt @@ -880,7 +880,7 @@ if(BUILD_TESTING) if(WIN32) set_tests_properties(agc_thread_priority PROPERTIES ENVIRONMENT_MODIFICATION "PATH=path_list_prepend:$") - else() + elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux") foreach(mode rt high) add_test(NAME agc_thread_priority_refused_${mode} COMMAND agc_thread_priority_tests refused) set_tests_properties(agc_thread_priority_refused_${mode} PROPERTIES ENVIRONMENT @@ -3237,7 +3237,7 @@ if(BUILD_TESTING) set_tests_properties(agc_driver_pm4_failure agc_driver_pm4_failure_inline agc_descriptor_pool_reset_failure agc_descriptor_cache agc_driver_address_space_teardown PROPERTIES ENVIRONMENT_MODIFICATION "PATH=path_list_prepend:$") endif() - if(NOT WIN32) + if(CMAKE_SYSTEM_NAME STREQUAL "Linux") add_test(NAME agc_driver_pm4_priority_refused COMMAND agc_driver_pm4_tests priority-refused) set_tests_properties(agc_driver_pm4_priority_refused PROPERTIES ENVIRONMENT "ANYPS5_NO_SHADER_CACHE=1;APS5_THREAD_PRIORITY=high;DBUS_SYSTEM_BUS_ADDRESS=unix:path=/nonexistent/aps5-no-rtkit" SKIP_RETURN_CODE 77)