Skip to content

Commit fae78ea

Browse files
committed
Tidy up truffle.mspec
1 parent 3a59f5b commit fae78ea

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

spec/truffle.mspec

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,26 @@ class MSpecScript
2929
end
3030
end
3131

32+
# Specs that need Sulong and should be tested in the Sulong gate
33+
library_cext_specs = %w[
34+
spec/ruby/library/etc
35+
spec/ruby/library/openssl
36+
spec/ruby/library/rbconfig/sizeof
37+
spec/ruby/library/syslog
38+
spec/ruby/library/yaml
39+
spec/ruby/library/zlib
40+
spec/ruby/security/cve_2017_17742_spec.rb
41+
]
42+
3243
set :command_line, [
3344
"spec/ruby/command_line"
3445
]
3546

3647
set :security, [
3748
"spec/ruby/security",
38-
"^spec/ruby/security/cve_2017_17742_spec.rb" # :library_cext
49+
50+
# Tested separately as they need Sulong
51+
*library_cext_specs.map { |path| "^#{path}" }
3952
]
4053

4154
set :language, [
@@ -51,23 +64,9 @@ class MSpecScript
5164
"^spec/ruby/core/dir/element_reference_spec.rb"
5265
]
5366

54-
# Specs that need Sulong and should be tested in the Sulong gate
55-
library_cext_specs = %w[
56-
spec/ruby/library/etc
57-
spec/ruby/library/openssl
58-
spec/ruby/library/rbconfig/sizeof
59-
spec/ruby/library/syslog
60-
spec/ruby/library/yaml
61-
spec/ruby/library/zlib
62-
spec/ruby/security/cve_2017_17742_spec.rb
63-
]
64-
6567
set :library, [
6668
"spec/ruby/library",
6769

68-
# Issues with monkey patching breaking our core
69-
"^spec/ruby/library/mathn",
70-
7170
# Trying to enable breaks a lot of things
7271
"^spec/ruby/library/net",
7372

@@ -86,6 +85,8 @@ class MSpecScript
8685

8786
set :truffle, [
8887
"spec/truffle",
88+
89+
# Tested separately
8990
"^spec/truffle/capi"
9091
]
9192

0 commit comments

Comments
 (0)