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> {
34793479
34803480 // We construct the following directory tree for each rmake.rs test:
34813481 // ```
3482- // base_dir/
3482+ // < base_dir> /
34833483 // rmake.exe
34843484 // rmake_out/
34853485 // ```
@@ -3597,13 +3597,14 @@ impl<'test> TestCx<'test> {
35973597 paths
35983598 } ;
35993599
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+ } ;
36073608 debug ! ( ?recipe_bin) ;
36083609
36093610 // FIXME(jieyouxu): explain what the hecc we are doing here.
You can’t perform that action at this time.
0 commit comments