nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 43 lines 1.4 kB view raw
1Disable codesign check and a Darwin-specific temp dir workaround. 2 3Note: the darwin.sigtool package includes a codesign utility, but it doesn't support the -v flag used in this test. 4 5diff --git a/tests/integration/compile_tests.rs b/tests/integration/compile_tests.rs 6index 503538d24..ca89e3133 100644 7--- a/tests/integration/compile_tests.rs 8+++ b/tests/integration/compile_tests.rs 9@@ -32,17 +32,6 @@ fn compile_basic() { 10 output.assert_matches_text("Welcome to Deno!\n"); 11 } 12 13- // On arm64 macOS, check if `codesign -v` passes 14- #[cfg(all(target_os = "macos", target_arch = "aarch64"))] 15- { 16- let output = std::process::Command::new("codesign") 17- .arg("-v") 18- .arg(&exe) 19- .output() 20- .unwrap(); 21- assert!(output.status.success()); 22- } 23- 24 // now ensure this works when the deno_dir is readonly 25 let readonly_dir = dir.path().join("readonly"); 26 readonly_dir.make_dir_readonly(); 27diff --git a/tests/unit/dir_test.ts b/tests/unit/dir_test.ts 28index 757c8fec3..22b999820 100644 29--- a/tests/unit/dir_test.ts 30+++ b/tests/unit/dir_test.ts 31@@ -12,11 +12,7 @@ Deno.test( 32 const path = Deno.makeTempDirSync(); 33 Deno.chdir(path); 34 const current = Deno.cwd(); 35- if (Deno.build.os === "darwin") { 36- assertEquals(current, "/private" + path); 37- } else { 38- assertEquals(current, path); 39- } 40+ assertEquals(current, path); 41 Deno.chdir(initialdir); 42 }, 43 );