File tree Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -761,24 +761,35 @@ fn host_twice() {
761
761
}
762
762
763
763
/// Check multi stage sysroot builds with `xargo test`
764
- // We avoid Windows here just because it would be tricky to modify the rust-src
765
- // component (cf. #36501) from within the appveyor environment
766
764
#[ cfg( feature = "dev" ) ]
767
- #[ cfg( not( windows) ) ]
768
765
#[ test]
769
766
fn test ( ) {
770
767
fn run ( ) -> Result < ( ) > {
771
768
let project = HProject :: new ( true ) ?;
772
769
773
- project. xargo_toml (
770
+ if std:: env:: var ( "TRAVIS_RUST_VERSION" ) . ok ( ) . map_or ( false ,
771
+ |var| var. starts_with ( "nightly-2018" ) )
772
+ {
773
+ // Testing an old version on CI, we need a different Xargo.toml.
774
+ project. xargo_toml (
774
775
"
775
776
[dependencies.std]
776
777
features = [\" panic_unwind\" ]
777
778
778
779
[dependencies.test]
779
780
stage = 1
780
781
" ,
781
- ) ?;
782
+ ) ?;
783
+ } else {
784
+ project. xargo_toml (
785
+ "
786
+ [dependencies.std]
787
+ features = [\" panic_unwind\" ]
788
+
789
+ [dependencies.test]
790
+ " ,
791
+ ) ?;
792
+ }
782
793
783
794
xargo ( ) ?. arg ( "test" ) . current_dir ( project. td . path ( ) ) . run ( ) ?;
784
795
@@ -788,7 +799,7 @@ stage = 1
788
799
run ! ( )
789
800
}
790
801
791
- /// Check multi stage sysroot builds with `xargo test `
802
+ /// Check multi stage sysroot builds with `xargo build `
792
803
#[ cfg( feature = "dev" ) ]
793
804
#[ test]
794
805
fn alloc ( ) {
You can’t perform that action at this time.
0 commit comments