From 0543e636ef0048d8ec16d5390355e2ce9ed0fd69 Mon Sep 17 00:00:00 2001 From: Nahuel Genchi <65604505+NahuelGenchi@users.noreply.github.com> Date: Thu, 8 Oct 2026 01:57:33 -0300 Subject: [PATCH] test(agc): match the unreadable-code error and run the flip compute mode in ctest --- core/libs/prx/libSceAgcDriver/CMakeLists.txt | 6 ++++++ core/libs/prx/libSceAgcDriver/tests/Flip.cpp | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/core/libs/prx/libSceAgcDriver/CMakeLists.txt b/core/libs/prx/libSceAgcDriver/CMakeLists.txt index 6fec2dd1f..c1b4cfb07 100644 --- a/core/libs/prx/libSceAgcDriver/CMakeLists.txt +++ b/core/libs/prx/libSceAgcDriver/CMakeLists.txt @@ -542,6 +542,12 @@ if(BUILD_TESTING) "PATH=path_list_prepend:$") endif() endforeach() + add_test(NAME agc_driver_flip_compute COMMAND agc_driver_flip_tests compute) + set_tests_properties(agc_driver_flip_compute PROPERTIES ENVIRONMENT "ANYPS5_NO_SHADER_CACHE=1" SKIP_RETURN_CODE 77) + if(WIN32) + set_tests_properties(agc_driver_flip_compute PROPERTIES ENVIRONMENT_MODIFICATION + "PATH=path_list_prepend:$") + endif() endif() option(AGC_BUILD_VISUAL_TEST "Enable the standalone AGC SPIR-V visual test" OFF) diff --git a/core/libs/prx/libSceAgcDriver/tests/Flip.cpp b/core/libs/prx/libSceAgcDriver/tests/Flip.cpp index 596974c90..da4fb199c 100644 --- a/core/libs/prx/libSceAgcDriver/tests/Flip.cpp +++ b/core/libs/prx/libSceAgcDriver/tests/Flip.cpp @@ -193,7 +193,7 @@ void testReset(bool compute) { if (compute) sceAgcDriverSubmitAcb(0x20, &packet); else sceAgcDriverSubmitDcb(&packet); const auto message = expectFailure([] { AgcDriverWaitIdle_nid_postfix(); }); - check(message.find(compute ? "registered" : "required shader register") != std::string::npos, "suspend reset wrong queue state"); + check(message.find(compute ? "not readable" : "required shader register") != std::string::npos, "suspend reset wrong queue state"); } } @@ -203,7 +203,7 @@ int main(int argc, char** argv) { if (argc == 2) testReset(std::string(argv[1]) == "compute"); else { testFlipAndBoundary(); testFailure(); } const auto shutdown = expectFailure([] { LibcRunShutdown_nid_postfix(); }); - check(shutdown.find(argc == 2 ? (std::string(argv[1]) == "compute" ? "registered" : "required shader register") : "intentional flip failure") != std::string::npos, "shutdown lost worker failure"); + check(shutdown.find(argc == 2 ? (std::string(argv[1]) == "compute" ? "not readable" : "required shader register") : "intentional flip failure") != std::string::npos, "shutdown lost worker failure"); std::puts("AGC flip and suspend tests passed"); return 0; } catch (const std::exception& error) {