Просмотр исходного кода

Minor change to add argument checking

[SVN r11752]
Dave Abrahams 24 лет назад
Родитель
Сommit
f133a25b50
1 измененных файлов с 5 добавлено и 2 удалено
  1. 5 2
      status/Jamfile

+ 5 - 2
status/Jamfile

@@ -131,8 +131,8 @@ rule run-test # target : sources : requirements
     
     # The .test file goes with the other subvariant targets
     # normalization is a hack to get the slashes going the right way on Windoze
-    local normalized-locate = [ FDirName [ split-path $(LOCATE_TARGET) ] ] ;
-    MakeLocate $(<) : $(normalized-locate) ;
+    local LOCATE_TARGET = [ FDirName [ split-path $(LOCATE_TARGET) ] ] ;
+    MakeLocate $(<) : $(LOCATE_TARGET) ;
     
     DEPENDS $(<) : $(executable) $(gRUN_TEST_INPUT_FILES) ;
     INPUT_FILES on $(<) = $(gRUN_TEST_INPUT_FILES) ;
@@ -144,6 +144,9 @@ rule run-test # target : sources : requirements
         ALWAYS $(<) ;
     }
 }
+
+# The rule is just used for argument checking
+rule capture-run-output ( target : executable + ) { }
 actions capture-run-output bind INPUT_FILES
 {
     $(>) $(ARGS) $(INPUT_FILES) > $(<:S=.error)

粤ICP备19079148号