]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #22341 - fhahn:issue-22291-PLEASE-FAIL, r=alexcrichton
authorManish Goregaokar <manishsmail@gmail.com>
Mon, 16 Feb 2015 05:57:42 +0000 (11:27 +0530)
committerManish Goregaokar <manishsmail@gmail.com>
Tue, 17 Feb 2015 00:53:36 +0000 (06:23 +0530)
commit6cab5bba751c4da56fe409321af908070e9ed808
tree3f9689621c7182309899ed04ea872fa85eff734e
parentb0d2c6a71485dcba9952cc240b7cb73e85f10f10
parentff1181da15ff399846b57a90481f649d6563261b
Rollup merge of #22341 - fhahn:issue-22291-PLEASE-FAIL, r=alexcrichton

This is a patch for #22291.

PLEASE_BENCH=1 adds --bench to the arguments passed to the executable to be tested. At the moment, compiletest does not accept a --bench argument, because it is not needed for any test in src/test/, even the tests in src/test/bench do not use #[bench].

I have updated the makefile to only add the --bench flag for crate tests. I do not think that changing compiletest add --bench to the run arguments of all compile tests makes sense, because it would mess up tests which check command line arguments. Also the bench option can be added as comment in a compile test as well.