Repository navigation
Conversation
…n Windows boykopovar#13104 added TemporaryFile::Open() and moved the 15 tests named in boykopovar#13083 off std::tmpfile(). The agc driver tests and guest_sce_net still call it, so they abort the same way when %TEMP% holds a character outside the ANSI code page. Switch their 18 calls to the helper. GuestSyslog.cpp stays on std::tmpfile() until boykopovar#9929 merges.
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — changes requested
This draft exactly duplicates open PR #13704: both heads change the same 13 files with identical added and removed lines.
Findings
Blocking
PR #13704 is already open at 48191a538bcdb91812320df8d38c0c7936b69b18, and its patch matches this draft at 5b8f32eb1e67fb79fb25fbd187cbc96484336552 across all 13 changed files. Please coordinate with #13704's author and keep one PR for this work; update this draft only if it contains distinct changes.
Non-blocking
None.
Sources
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
|
Closing this as a duplicate of #13704 by @dmto. That PR was opened about six minutes before this one and makes the same change to the same 13 files. I wrote this branch on my own from #13083 and #13104, but my last overlap check ran before #13704 existed, and I didn't run it again right before opening this. I'm sorry for the noise, and thanks to @MarcZX10 for catching it. In case it's useful for #13704: on Windows 11 with an RTX 5070 Ti (driver 621.01) and |
What
#13104 added
core/libs/tests/TemporaryFile.hppand moved the 15 tests named in #13083 offstd::tmpfile(). 13 more test files still call it, so they abort the same way when%TEMP%contains a character outside the ANSI code page (GetTempPathAturns it into?, andtmpfile()returnsNULLwitherrno22):libSceAgcDriver/tests:AsyncLog.cpp,FrameDumpIo.cpp,Pm4Replay.cpp,Recorder.cpplibSceAgcDriver/tests/execution:ComputeTableCalls.cpp,DescriptorWebFaults.cpp,GuardedNullPointer.cpp,ImageTable.cpp,LdsMixedWidthAtomics.cpp,PreparedShaders.cpp,SampleMultisampleTarget.cpp,WindowLaneSpill.cppcore/libs/tests/GuestSceNet.cppEach file now includes the header and calls
TemporaryFile::Open()instead ofstd::tmpfile()(18 calls). No other lines change.GuestSyslog.cppstays onstd::tmpfile()until #9929 merges, as #13104 left it.No production code changes.
Tested
Windows 11, Intel Core Ultra 7 255HX, code page 1252, WinLibs GCC 15.2.0 (UCRT, posix-seh), Ninja, Release,
BUILD_TESTING=ON,main7ceda13. All 15 targets that compile the changed files build.CPU tests,
ctest -R '^(agc_async_log|agc_async_log_fatal|agc_frame_dump_io|guest_sce_net)$', 3 runs per cell:TEMPandTMPmain7ceda13...\zh_Ж(outside code page 1252)agc_frame_dump_io(cannot create BMP test file),agc_async_log(temporary file),guest_sce_net(abort)guest_sce_netabort (0xc0000409) in run 3TEMPI couldn't reproduce that single branch-side
guest_sce_netabort. A further 10ctestruns underzh_Жand 10 under the normalTEMPall passed, and a later 20-run loop under each recorded no failures. Onmainit aborts in everyzh_Жrun.GPU tests: the 141 tests the 10 changed agc executables register (
agc_driver_recorder_tests, the eightexecutiontests,agc_driver_pm4_replay_testsplusagc_driver_pm4_replay_tool), one run per cell,ctest -j 1,ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1, on an NVIDIA GeForce RTX 5070 Ti (driver 621.01):TEMPandTMPmain7ceda13...\zh_Жagc_pipeline_cache_file,agc_pipeline_cache_header,agc_recorder_deferred_failure_report,agc_driver_compute_table_calls,agc_driver_descriptor_web_faults,agc_driver_guarded_null_pointer,agc_driver_guarded_direct_root,agc_driver_image_table,agc_driver_sample_multisample_target,agc_driver_window_lane_spill,agc_driver_lds_lock_budget, sixagc_driver_prepared_shaders_abi_deferred_*,agc_driver_pm4_replay;agc_driver_pm4_replay_toolnot run, since its fixture failed)agc_pipeline_cache_headerstill failsTEMPagc_pipeline_cache_headerfails for another reason that this PR doesn't touch. It passes the cache directory to_putenv_sthroughdirectory.string(), and libstdc++ throwsfilesystem_errorthere for a character outside the code page. It fails the same way onmain. That belongs to the in-code-page/narrow-path group of #12993 and #12996 and can go in a separate PR.python tools/check_conventions.py --base origin/main: all checks passed.python tools/pr_overlap.py --branch fix/tests-wide-tmpfile-agc: no line conflict with any open PR that merges intomain. It couldn't compare 34 PRs that already conflict withmainand share a file (mostlyRecorder.cpp). I compared those by hand: none of them changes astd::tmpfile()line or the stderr/stdout capture helpers. feat(agc): retain and refresh sampled depth array storage #1368, feat(agc): add experimental depth clear and copy recognition #1395, feat(agc): reuse a native multisample colour target and honour guest HTILE clears #6808, perf(agc): wait at submit only for the preparations of the programs a submission binds #6867, perf(agc): store whole words of 1- and 2-byte texels in the detile shader #6905, test(agc): enable VK_KHR_portability_subset in the tests that create their own device #10920 and feat(agc): upload varying guest samples of a multisampled texture no draw rendered to #13146 add#includelines in the same include blocks, which at most needs a one-line merge.TemporaryFile::Open()still returnsstd::tmpfile().Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)guest_syslogremains, behind fix(libc): restore syslog program-name fallback #9929)