mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-18 23:07:07 -05:00
test(relinker): expect self containers to be skipped
This commit is contained in:
1 parent
480e68a84d
commit
651edc39f5
2 files changed
+3
-4
No files matched your search
@@ -117,9 +117,8 @@ def main():
|
||||
(case / "sce_module" / "libc.prx").write_bytes(magic + bytes(0x1000))
|
||||
(case / "prx" / "provider.prx").write_bytes(module_with_symbol(True))
|
||||
result, output = convert(case, windows)
|
||||
assert result.returncode == 2 and "Guest module is a SELF container, not an ELF" in result.stderr, result.stderr
|
||||
assert str(case / "sce_module" / "libc.prx") in result.stderr, result.stderr
|
||||
assert not output.exists() and not (case / "app0").exists(), output
|
||||
assert result.returncode == 0 and output.exists(), result.stderr
|
||||
assert {path.name for path in (case / "app0").rglob("*.guest.prx")} == {"provider.prx.guest.prx"}
|
||||
result, output = convert(case, windows, ["--exclude-sce-module", "libc.prx"])
|
||||
assert result.returncode == 0 and output.exists(), result.stderr
|
||||
assert {path.name for path in (case / "app0").rglob("*.guest.prx")} == {"provider.prx.guest.prx"}
|
||||
|
||||
@@ -61,7 +61,7 @@ def main():
|
||||
(nested / "needed.prx").write_bytes(bytes.fromhex("4f153d1d") + bytes(128))
|
||||
run("no-recursion", ["--sce-module-path", str(parent)])
|
||||
(modules / "needed.prx").write_bytes(bytes.fromhex("4f153d1d") + bytes(128))
|
||||
run("self", ["--sce-module-path", str(parent)], error="SELF container")
|
||||
run("self", ["--sce-module-path", str(parent)])
|
||||
print("sce-module-path: 18 cases passed")
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user