Files
nixpkgs/pkgs/by-name/de/deno/patches/0004-tests-darwin-fixes.patch
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

44 lines
1.4 KiB
Diff

Disable codesign check and a Darwin-specific temp dir workaround.
Note: the darwin.sigtool package includes a codesign utility, but it doesn't support the -v flag used in this test.
diff --git a/tests/integration/compile_tests.rs b/tests/integration/compile_tests.rs
index 503538d24..ca89e3133 100644
--- a/tests/integration/compile_tests.rs
+++ b/tests/integration/compile_tests.rs
@@ -32,17 +32,6 @@ fn compile_basic() {
output.assert_matches_text("Welcome to Deno!\n");
}
- // On arm64 macOS, check if `codesign -v` passes
- #[cfg(all(target_os = "macos", target_arch = "aarch64"))]
- {
- let output = std::process::Command::new("codesign")
- .arg("-v")
- .arg(&exe)
- .output()
- .unwrap();
- assert!(output.status.success());
- }
-
// now ensure this works when the deno_dir is readonly
let readonly_dir = dir.path().join("readonly");
readonly_dir.make_dir_readonly();
diff --git a/tests/unit/dir_test.ts b/tests/unit/dir_test.ts
index 757c8fec3..22b999820 100644
--- a/tests/unit/dir_test.ts
+++ b/tests/unit/dir_test.ts
@@ -12,11 +12,7 @@ Deno.test(
const path = Deno.makeTempDirSync();
Deno.chdir(path);
const current = Deno.cwd();
- if (Deno.build.os === "darwin") {
- assertEquals(current, "/private" + path);
- } else {
- assertEquals(current, path);
- }
+ assertEquals(current, path);
Deno.chdir(initialdir);
},
);