forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcrystal-0.27.0-gentoo-tests-long-unix.patch
90 lines (81 loc) · 3.24 KB
/
crystal-0.27.0-gentoo-tests-long-unix.patch
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
--- a/spec/std/socket/unix_server_spec.cr
+++ b/spec/std/socket/unix_server_spec.cr
@@ -14,7 +14,9 @@ describe UNIXServer do
end
end
- it "creates the socket file" do
+ # On large non-standard temp paths the test fails as:
+ # Path size exceeds the maximum size of 107 bytes
+ pending "creates the socket file" do
with_tempfile("unix_server.sock") do |path|
UNIXServer.open(path) do
File.exists?(path).should be_true
@@ -24,7 +26,9 @@ describe UNIXServer do
end
end
- it "deletes socket file on close" do
+ # On large non-standard temp paths the test fails as:
+ # Path size exceeds the maximum size of 107 bytes
+ pending "deletes socket file on close" do
with_tempfile("unix_server-close.sock") do |path|
server = UNIXServer.new(path)
server.close
@@ -33,7 +37,9 @@ describe UNIXServer do
end
end
- it "raises when socket file already exists" do
+ # On large non-standard temp paths the test fails as:
+ # Path size exceeds the maximum size of 107 bytes
+ pending "raises when socket file already exists" do
with_tempfile("unix_server-twice.sock") do |path|
server = UNIXServer.new(path)
@@ -45,7 +51,9 @@ describe UNIXServer do
end
end
- it "won't delete existing file on bind failure" do
+ # On large non-standard temp paths the test fails as:
+ # Path size exceeds the maximum size of 107 bytes
+ pending "won't delete existing file on bind failure" do
with_tempfile("unix_server-exist.sock") do |path|
File.write(path, "")
File.exists?(path).should be_true
@@ -60,7 +68,9 @@ describe UNIXServer do
end
describe "accept" do
- it "returns the client UNIXSocket" do
+ # On large non-standard temp paths the test fails as:
+ # Path size exceeds the maximum size of 107 bytes
+ pending "returns the client UNIXSocket" do
with_tempfile("unix_server-accept.sock") do |path|
UNIXServer.open(path) do |server|
UNIXSocket.open(path) do |_|
@@ -72,7 +82,9 @@ describe UNIXServer do
end
end
- it "raises when server is closed" do
+ # On large non-standard temp paths the test fails as:
+ # Path size exceeds the maximum size of 107 bytes
+ pending "raises when server is closed" do
with_tempfile("unix_server-closed.sock") do |path|
server = UNIXServer.new(path)
exception = nil
@@ -97,7 +109,9 @@ describe UNIXServer do
end
describe "accept?" do
- it "returns the client UNIXSocket" do
+ # On large non-standard temp paths the test fails as:
+ # Path size exceeds the maximum size of 107 bytes
+ pending "returns the client UNIXSocket" do
with_tempfile("unix_server-accept_.sock") do |path|
UNIXServer.open(path) do |server|
UNIXSocket.open(path) do |_|
@@ -109,7 +123,9 @@ describe UNIXServer do
end
end
- it "returns nil when server is closed" do
+ # On large non-standard temp paths the test fails as:
+ # Path size exceeds the maximum size of 107 bytes
+ pending "returns nil when server is closed" do
with_tempfile("unix_server-accept2.sock") do |path|
server = UNIXServer.new(path)
ret = :initial