File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
src/tools/compiletest/src Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -3481,7 +3481,7 @@ impl<'test> TestCx<'test> {
3481
3481
3482
3482
// We construct the following directory tree for each rmake.rs test:
3483
3483
// ```
3484
- // base_dir/
3484
+ // < base_dir> /
3485
3485
// rmake.exe
3486
3486
// rmake_out/
3487
3487
// ```
@@ -3599,13 +3599,14 @@ impl<'test> TestCx<'test> {
3599
3599
paths
3600
3600
} ;
3601
3601
3602
- // Finally, we need to run the recipe binary to build and run the actual tests.
3603
- // FIXME(jieyouxu): use `std::env::consts::EXE_EXTENSION`.
3604
- let recipe_bin = base_dir. join ( if self . config . target . contains ( "windows" ) {
3605
- "rmake.exe"
3606
- } else {
3607
- "rmake"
3608
- } ) ;
3602
+ // Calculate the paths of the recipe binary. As previously discussed, this is placed at
3603
+ // `<base_dir>/<bin_name>` with `bin_name` being `rmake` or `rmake.exe` dependending on
3604
+ // platform.
3605
+ let recipe_bin = {
3606
+ let mut p = base_dir. join ( "rmake" ) ;
3607
+ p. set_extension ( env:: consts:: EXE_EXTENSION ) ;
3608
+ p
3609
+ } ;
3609
3610
debug ! ( ?recipe_bin) ;
3610
3611
3611
3612
// FIXME(jieyouxu): explain what the hecc we are doing here.
You can’t perform that action at this time.
0 commit comments