Repository navigation
Commit 53002b9
gh-160388: Load the copied library in the deleted-mapping test (GH-160396)
The deleted-`libpython` mapping test uses `LD_LIBRARY_PATH` to load a temporary copy of the library. On glibc, an interpreter's `DT_RPATH` can take precedence and load a different copy, so the test fails because the temporary copy was not mapped. Preload the temporary library explicitly so the subprocess maps the file that the test removes. Create the copy beneath the working directory and preload it through a relative path, since `LD_PRELOAD` treats spaces and colons as separators.
(cherry picked from commit 3a440b6)
Co-authored-by: Zanie Blue <contact@zanie.dev>
1 parent 6600984 commit 53002b9
1 file changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2333 | 2333 | | |
2334 | 2334 | | |
2335 | 2335 | | |
2336 | | - | |
2337 | | - | |
| 2336 | + | |
| 2337 | + | |
| 2338 | + | |
2338 | 2339 | | |
2339 | 2340 | | |
2340 | 2341 | | |
2341 | 2342 | | |
2342 | 2343 | | |
2343 | | - | |
2344 | | - | |
2345 | | - | |
| 2344 | + | |
| 2345 | + | |
| 2346 | + | |
| 2347 | + | |
| 2348 | + | |
| 2349 | + | |
2346 | 2350 | | |
2347 | 2351 | | |
2348 | 2352 | | |
| |||
0 commit comments