rea/tests
Chaoqi 1d5f95dc4a
fix(native): parse renamed dyld_info re-exports (#2364)
* fix(native): parse renamed dyld_info re-exports

dyld_info prints a re-export whose name differs from the source library's
symbol as `[re-export] _foo_renamed (_foo from libfoo)`. The export parser
only accepted `(from libfoo)`, so inspect_macho reported a nonexistent
export named `_foo_renamed (_foo from libfoo)` with no source, and the nm
row for `_foo_renamed` survived the name-based merge as a second export
with reexport null.

Accept the optional source symbol, trying the plain `(from lib)` form
first so a library name containing ` from ` keeps its text. The row now
reports `_foo_renamed` re-exported from libfoo and replaces the nm
duplicate. The export schema has no field for the source symbol name, so
exports coverage records a limitation when a renamed re-export is present.
The golden fixture is a dyld_info capture of a synthetic dylib linked with
-Wl,-alias,_foo,_foo_renamed.

* fix(native): split dyld re-export suffix without nested quantifiers

Replace the (?:(.+?)\s+)??from lazy-optional group with a linear string
scan so malformed lines cannot backtrack and a library path containing
" from " still keeps its whole text via the plain-form-first check.

* test(native): cover nested re-export library names

* fix(native): retain reexports missing from nm inventory

---------

Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
Co-authored-by: morluto <17176810+morluto@users.noreply.github.com>
2026-10-14 01:06:55 +08:00
..
acceptance fix(cli): keep file URLs out of operator-relative path resolution (#2882) 2026-10-14 01:05:14 +08:00
boundary fix(native): parse renamed dyld_info re-exports (#2364) 2026-10-14 01:06:55 +08:00
composition fix(tests): clear lint and typecheck errors on main 2026-10-13 22:32:01 +08:00
conformance docs: move translated READMEs under docs/readme (#2165) 2026-10-13 22:25:32 +08:00
evaluation test(evaluation): grade managed agent fixture facts (#1924) 2026-10-13 23:34:17 +08:00
fixtures fix(native): parse renamed dyld_info re-exports (#2364) 2026-10-14 01:06:55 +08:00
process-global fix: isolate Linux inventory and repair DEX schema regex (#2910) 2026-10-14 00:56:43 +08:00
support test(cli): preserve Windows runtime paths and failure diagnostics 2026-10-12 15:46:42 +08:00
ciTestSequencer.ts ci: finish main validation and balance complete test costs 2026-10-13 18:54:05 +08:00
processOwnershipRunner.ts test(process): retire native caches at worker teardown 2026-10-09 04:12:49 +08:00