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