Four complete test files under core/libs/tests/ are never built or run #17
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by obelisk-complex on 2026-09-26T20:24:48Z.
core/libs/tests/ExceptionRuntime.cpp(211 lines),PthreadStart.cpp(105 lines),FileStreams.cpp(67 lines) andFormatting.cpp(87 lines) are complete, real tests, not stubs, but none is referenced by anyCMakeLists.txtanywhere in the tree, so none is ever compiled or run.git logshows they were added in real feature/fix commits alongside production code, so they were written to run and then lost.ExceptionRuntime.cppis the most consequential: it covers RTTI across virtual/diamond/private inheritance, foreign-exception interop,__cxa_vec_new3/__cxa_vec_delete3array-construction cleanup on partial failure, multi-threaded exception handling, and forced unwind. None of this is exercised anywhere else in the current suite.The other three have genuinely bitrotted since being orphaned, independent of the wiring problem itself:
PthreadStart.cppincludesprx/libkernel/Pthread/Pthread.hpp, which moved toprx/libkernel/Pthread/include/Pthread.hppat some point after this test was written.FileStreams.cppexpectsfseekto throwstd::runtime_erroron an invalid whence value; the current implementation returns-1witherrnoset instead.Formatting.cppexpects aVaListpassed tovsnprintfto be byte-identical afterwards; the implementation mutates it in place while consuming arguments, which is normal SysVva_list-by-reference behaviour, so the test's own assumption no longer holds.🤖 Generated with Claude Code