File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -478,13 +478,16 @@ mod test {
478
478
assert_redirect ( "/dummy/0.2.0/x86_64-pc-windows-msvc/dummy/" , base, web) ?;
479
479
480
480
// set an explicit target without cross-compile
481
+ // also check that /:crate/:version/:platform/all.html doesn't panic
481
482
let target = "x86_64-unknown-linux-gnu" ;
482
483
db. fake_release ( ) . name ( "dummy" ) . version ( "0.3.0" )
483
484
. rustdoc_file ( "dummy/index.html" , b"some content" )
485
+ . rustdoc_file ( "all.html" , b"html" )
484
486
. default_target ( target) . create ( ) ?;
485
487
let base = "/dummy/0.3.0/dummy/" ;
486
488
assert_success ( base, web) ?;
487
- assert_redirect ( "/dummy/0.3.0/x86_64-unknown-linux-gnu/dummy/" , base, web)
489
+ assert_redirect ( "/dummy/0.3.0/x86_64-unknown-linux-gnu/dummy/" , base, web) ?;
490
+ assert_redirect ( "/dummy/0.3.0/x86_64-unknown-linux-gnu/all.html" , "/dummy/0.3.0/all.html" , web)
488
491
} ) ;
489
492
}
490
493
}
You can’t perform that action at this time.
0 commit comments