You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-lang/crystal/files/crystal-0.24.2-gentoo-tests...

38 lines
1.2 KiB

diff --git a/spec/std/file_spec.cr b/spec/std/file_spec.cr
index 4a08b7d..cb1b28c 100644
--- a/spec/std/file_spec.cr
+++ b/spec/std/file_spec.cr
@@ -1026,7 +1026,8 @@ describe "File" do
end
end
- it "raises if file cannot be accessed" do
+ # On linux it's "Permission denied", not "Operation not permitted"
+ pending "raises if file cannot be accessed" do
expect_raises Errno, "Operation not permitted" do
File.touch("/bin/ls")
end
diff --git a/spec/std/process_spec.cr b/spec/std/process_spec.cr
index 4a36f18..0cd63a8 100644
--- a/spec/std/process_spec.cr
+++ b/spec/std/process_spec.cr
@@ -115,14 +115,16 @@ describe Process do
end
describe "environ" do
- it "clears the environment" do
+ #gentoo's sandbox keeps sandbox environment
+ pending "clears the environment" do
value = Process.run("env", clear_env: true) do |proc|
proc.output.gets_to_end
end
value.should eq("")
end
- it "sets an environment variable" do
+ #gentoo's sandbox keeps sandbox environment
+ pending "sets an environment variable" do
env = {"FOO" => "bar"}
value = Process.run("env", clear_env: true, env: env) do |proc|
proc.output.gets_to_end