@@ -94,13 +94,15 @@ const BASE_SYSROOT_SUITE: &[TestCase] = &[
94
94
TestCase :: build_bin_and_run ( "aot.issue-72793" , "example/issue-72793.rs" , & [ ] ) ,
95
95
] ;
96
96
97
+ // FIXME(rust-random/rand#1293): Newer rand versions fail to test on Windows. Update once this is
98
+ // fixed.
97
99
pub ( crate ) static RAND_REPO : GitRepo =
98
- GitRepo :: github ( "rust-random" , "rand" , "0f933f9c7176e53b2a3c7952ded484e1783f0bf1 " , "rand" ) ;
100
+ GitRepo :: github ( "rust-random" , "rand" , "50b9a447410860af8d6db9a208c3576886955874 " , "rand" ) ;
99
101
100
102
pub ( crate ) static RAND : CargoProject = CargoProject :: new ( & RAND_REPO . source_dir ( ) , "rand" ) ;
101
103
102
104
pub ( crate ) static REGEX_REPO : GitRepo =
103
- GitRepo :: github ( "rust-lang" , "regex" , "341f207c1071f7290e3f228c710817c280c8dca1 " , "regex" ) ;
105
+ GitRepo :: github ( "rust-lang" , "regex" , "a9b2e02352db92ce1f6e5b7ecd41b8bbffbe161a " , "regex" ) ;
104
106
105
107
pub ( crate ) static REGEX : CargoProject = CargoProject :: new ( & REGEX_REPO . source_dir ( ) , "regex" ) ;
106
108
@@ -123,12 +125,11 @@ const EXTENDED_SYSROOT_SUITE: &[TestCase] = &[
123
125
RAND . clean ( & runner. dirs ) ;
124
126
125
127
if runner. is_native {
126
- eprintln ! ( "[TEST] rust-random/rand" ) ;
127
128
let mut test_cmd = RAND . test ( & runner. target_compiler , & runner. dirs ) ;
128
129
test_cmd. arg ( "--workspace" ) . arg ( "--" ) . arg ( "-q" ) ;
129
130
spawn_and_wait ( test_cmd) ;
130
131
} else {
131
- eprintln ! ( "[AOT] rust-random/rand " ) ;
132
+ eprintln ! ( "Cross-Compiling: Not running tests " ) ;
132
133
let mut build_cmd = RAND . build ( & runner. target_compiler , & runner. dirs ) ;
133
134
build_cmd. arg ( "--workspace" ) . arg ( "--tests" ) ;
134
135
spawn_and_wait ( build_cmd) ;
@@ -151,18 +152,13 @@ const EXTENDED_SYSROOT_SUITE: &[TestCase] = &[
151
152
TestCase :: custom ( "test.regex-shootout-regex-dna" , & |runner| {
152
153
REGEX . clean ( & runner. dirs ) ;
153
154
154
- // newer aho_corasick versions throw a deprecation warning
155
- let lint_rust_flags = format ! ( "{} --cap-lints warn" , runner. target_compiler. rustflags) ;
156
-
157
155
let mut build_cmd = REGEX . build ( & runner. target_compiler , & runner. dirs ) ;
158
156
build_cmd. arg ( "--example" ) . arg ( "shootout-regex-dna" ) ;
159
- build_cmd. env ( "RUSTFLAGS" , lint_rust_flags. clone ( ) ) ;
160
157
spawn_and_wait ( build_cmd) ;
161
158
162
159
if runner. is_native {
163
160
let mut run_cmd = REGEX . run ( & runner. target_compiler , & runner. dirs ) ;
164
161
run_cmd. arg ( "--example" ) . arg ( "shootout-regex-dna" ) ;
165
- run_cmd. env ( "RUSTFLAGS" , lint_rust_flags) ;
166
162
167
163
let input = fs:: read_to_string (
168
164
REGEX . source_dir ( & runner. dirs ) . join ( "examples" ) . join ( "regexdna-input.txt" ) ,
@@ -174,13 +170,6 @@ const EXTENDED_SYSROOT_SUITE: &[TestCase] = &[
174
170
. unwrap ( ) ;
175
171
176
172
let output = spawn_and_wait_with_input ( run_cmd, input) ;
177
- // Make sure `[codegen mono items] start` doesn't poison the diff
178
- let output = output
179
- . lines ( )
180
- . filter ( |line| !line. contains ( "codegen mono items" ) )
181
- . chain ( Some ( "" ) ) // This just adds the trailing newline
182
- . collect :: < Vec < & str > > ( )
183
- . join ( "\r \n " ) ;
184
173
185
174
let output_matches = expected. lines ( ) . eq ( output. lines ( ) ) ;
186
175
if !output_matches {
@@ -195,27 +184,14 @@ const EXTENDED_SYSROOT_SUITE: &[TestCase] = &[
195
184
TestCase :: custom ( "test.regex" , & |runner| {
196
185
REGEX . clean ( & runner. dirs ) ;
197
186
198
- // newer aho_corasick versions throw a deprecation warning
199
- let lint_rust_flags = format ! ( "{} --cap-lints warn" , runner. target_compiler. rustflags) ;
200
-
201
187
if runner. is_native {
202
188
let mut run_cmd = REGEX . test ( & runner. target_compiler , & runner. dirs ) ;
203
- run_cmd. args ( [
204
- "--tests" ,
205
- "--" ,
206
- "--exclude-should-panic" ,
207
- "--test-threads" ,
208
- "1" ,
209
- "-Zunstable-options" ,
210
- "-q" ,
211
- ] ) ;
212
- run_cmd. env ( "RUSTFLAGS" , lint_rust_flags) ;
189
+ run_cmd. args ( [ "--workspace" , "--" , "-q" ] ) ;
213
190
spawn_and_wait ( run_cmd) ;
214
191
} else {
215
192
eprintln ! ( "Cross-Compiling: Not running tests" ) ;
216
193
let mut build_cmd = REGEX . build ( & runner. target_compiler , & runner. dirs ) ;
217
194
build_cmd. arg ( "--tests" ) ;
218
- build_cmd. env ( "RUSTFLAGS" , lint_rust_flags. clone ( ) ) ;
219
195
spawn_and_wait ( build_cmd) ;
220
196
}
221
197
} ) ,
0 commit comments