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