Merge pull request #1986 from kali113/fix/shader-cache-test-cleanup

test(agc): flush shader cache writes before removing test files
This commit is contained in:
Dean
2026-10-10 10:42:39 +13:00
committed by GitHub
@@ -1036,8 +1036,10 @@ int main(int argc, char** argv) {
verifyVertexTypeSpecialization();
verifyBuiltinSpecialization();
verifySpecializationLiveness();
ShaderRecompiler::ShaderDiskCache::Flush();
std::error_code error;
std::filesystem::remove_all(directory, error);
require(!error, "cannot remove the shader cache test directory: " + error.message());
std::cout << "shader disk cache tests passed\n";
return 0;
} catch (const std::exception& error) {