diff --git a/core/relinker/relinker/tests/test_guest_needed_modules.py b/core/relinker/relinker/tests/test_guest_needed_modules.py index d15b96ac9..4f2746ee4 100644 --- a/core/relinker/relinker/tests/test_guest_needed_modules.py +++ b/core/relinker/relinker/tests/test_guest_needed_modules.py @@ -114,7 +114,7 @@ def main(): artifact = case / "app0" / "sce_module" / "needed.prx.guest.prx" assert artifact.read_bytes().startswith(b"MZ" if windows else b"\x7fELF"), artifact assert list((case / "app0").rglob("*.guest.prx")) == [artifact] - assert " sce_module/needed.prx.guest.prx\n" in result.stdout, result.stdout + assert " `-- sce_module/\n `-- needed.prx.guest.prx\n" in result.stdout, result.stdout if windows and os.name == "nt": run = subprocess.run([str(output)], capture_output=True, text=True, timeout=30) assert run.returncode == 42, (run.returncode, run.stdout, run.stderr) diff --git a/core/relinker/relinker/tests/test_linux_load_alignment.py b/core/relinker/relinker/tests/test_linux_load_alignment.py index d05c9a923..e511ac038 100644 --- a/core/relinker/relinker/tests/test_linux_load_alignment.py +++ b/core/relinker/relinker/tests/test_linux_load_alignment.py @@ -53,7 +53,7 @@ def main(): alignment = max(segment[7] for segment in segments) if alignment != 0x4000 or first[3] % alignment != 0 or first[7] != alignment: raise AssertionError(("first PT_LOAD is not aligned to the largest segment alignment", segments)) - assert "output.elf\nlibs/\n *.prx\napp0/" in result.stdout, result.stdout + assert " |-- output.elf\n |-- libs/\n | `-- *.prx (system libraries)\n `-- app0/" in result.stdout, result.stdout named_exe = Path(directory) / "linux.EXE" warning = subprocess.run([str(relinker), "--skip-sce-module", str(source), str(named_exe)], capture_output=True, text=True, timeout=20) assert warning.returncode == 0, (warning.stdout, warning.stderr)