mirror of
https://github.com/morluto/rea.git
synced 2026-11-11 09:21:16 +00:00
test: clarify Mach-O UUID fallback diagnostics
This commit is contained in:
1 parent
33b4762d5c
commit
75ff321e9e
2 files changed
+8
-4
No files matched your search
@@ -364,8 +364,10 @@ describe("Mach-O UUID reconciliation", () => {
|
||||
const result = await runInspection("UUID: A (arm64) /fixture/app\n");
|
||||
if (!result.ok) throw result.error;
|
||||
expect(result.value.result).toMatchObject({ uuid: validUuid });
|
||||
expect(result.value.limitations).toContain(
|
||||
'dwarfdump --uuid returned malformed UUID "A"; using the unambiguous binary load commands LC_UUID.',
|
||||
expect(result.value.limitations).toContainEqual(
|
||||
expect.stringMatching(
|
||||
/dwarfdump --uuid.*malformed UUID "A".*unambiguous.*LC_UUID/iu,
|
||||
),
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -244,8 +244,10 @@ it.each([
|
||||
selected_architecture: { name: "arm64e.v1", container_file_offset: 4096 },
|
||||
});
|
||||
if (architecture === "arm64e.v2")
|
||||
expect(result.value.limitations).toContain(
|
||||
"dwarfdump --uuid returned no row for selected architecture arm64e.v1; using the unambiguous binary load commands LC_UUID.",
|
||||
expect(result.value.limitations).toContainEqual(
|
||||
expect.stringMatching(
|
||||
/dwarfdump --uuid.*no row.*arm64e\.v1.*unambiguous.*LC_UUID/iu,
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user