From 75ff321e9e73861efab01db9545e51768255292f Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Sun, 8 Nov 2026 00:15:04 +0800 Subject: [PATCH] test: clarify Mach-O UUID fallback diagnostics --- src/native/NativeMachoInspection.test.ts | 6 ++++-- .../providers/native/nativeSelectedArchitecture.test.ts | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/native/NativeMachoInspection.test.ts b/src/native/NativeMachoInspection.test.ts index cffb940ef4..cdfc6f2619 100644 --- a/src/native/NativeMachoInspection.test.ts +++ b/src/native/NativeMachoInspection.test.ts @@ -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, + ), ); }); diff --git a/tests/boundary/providers/native/nativeSelectedArchitecture.test.ts b/tests/boundary/providers/native/nativeSelectedArchitecture.test.ts index 3c52b8ee22..5bd4889ec0 100644 --- a/tests/boundary/providers/native/nativeSelectedArchitecture.test.ts +++ b/tests/boundary/providers/native/nativeSelectedArchitecture.test.ts @@ -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, + ), ); }, );