about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/compilers/julia/patches/1.6-bin/0002-nix-Skip-tempname-test-broken-in-sandbox.patch
blob: d47efe25c5a0956dc7fea60aaa241d12dd695fdd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From ffe227676352a910754d96d92e9b06e475f28ff1 Mon Sep 17 00:00:00 2001
From: Pontus Stenetorp <pontus@stenetorp.se>
Date: Thu, 8 Apr 2021 04:25:19 +0000
Subject: [PATCH 2/6] nix: Skip `tempname` test broken in sandbox

Reported upstream:

    https://github.com/JuliaLang/julia/issues/38873
---
 test/file.jl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/file.jl b/test/file.jl
index 0f39bc7c14..bd4dd78f62 100644
--- a/test/file.jl
+++ b/test/file.jl
@@ -95,7 +95,7 @@ end
     @test dirname(t) == tempdir()
     mktempdir() do d
         t = tempname(d)
-        @test dirname(t) == d
+        @test_skip dirname(t) == d
     end
     @test_throws ArgumentError tempname(randstring())
 end
-- 
2.29.3