File tree 2 files changed +12
-12
lines changed
src/tools/compiletest/src
2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -1109,9 +1109,6 @@ fn ignore_lldb(config: &Config, line: &str) -> IgnoreDecision {
1109
1109
}
1110
1110
1111
1111
fn ignore_llvm ( config : & Config , line : & str ) -> IgnoreDecision {
1112
- if config. system_llvm && line. starts_with ( "no-system-llvm" ) {
1113
- return IgnoreDecision :: Ignore { reason : "ignored when the system LLVM is used" . into ( ) } ;
1114
- }
1115
1112
if let Some ( needed_components) =
1116
1113
config. parse_name_value_directive ( line, "needs-llvm-components" )
1117
1114
{
Original file line number Diff line number Diff line change @@ -242,15 +242,6 @@ fn aux_build() {
242
242
) ;
243
243
}
244
244
245
- #[ test]
246
- fn no_system_llvm ( ) {
247
- let config: Config = cfg ( ) . system_llvm ( false ) . build ( ) ;
248
- assert ! ( !check_ignore( & config, "// no-system-llvm" ) ) ;
249
-
250
- let config: Config = cfg ( ) . system_llvm ( true ) . build ( ) ;
251
- assert ! ( check_ignore( & config, "// no-system-llvm" ) ) ;
252
- }
253
-
254
245
#[ test]
255
246
fn llvm_version ( ) {
256
247
let config: Config = cfg ( ) . llvm_version ( "8.1.2" ) . build ( ) ;
@@ -266,6 +257,18 @@ fn llvm_version() {
266
257
assert ! ( !check_ignore( & config, "// min-llvm-version: 9.0" ) ) ;
267
258
}
268
259
260
+ #[ test]
261
+ fn system_llvm_version ( ) {
262
+ let config: Config = cfg ( ) . system_llvm ( true ) . llvm_version ( "17.0.0" ) . build ( ) ;
263
+ assert ! ( check_ignore( & config, "// min-system-llvm-version: 18.0" ) ) ;
264
+
265
+ let config: Config = cfg ( ) . system_llvm ( true ) . llvm_version ( "18.0.0" ) . build ( ) ;
266
+ assert ! ( !check_ignore( & config, "// min-system-llvm-version: 18.0" ) ) ;
267
+
268
+ let config: Config = cfg ( ) . llvm_version ( "17.0.0" ) . build ( ) ;
269
+ assert ! ( !check_ignore( & config, "// min-system-llvm-version: 18.0" ) ) ;
270
+ }
271
+
269
272
#[ test]
270
273
fn ignore_target ( ) {
271
274
let config: Config = cfg ( ) . target ( "x86_64-unknown-linux-gnu" ) . build ( ) ;
You can’t perform that action at this time.
0 commit comments