[commit: testsuite] master: We weren't generating a stats file for tests that only had stats_range_fields perf tests (19d638e)

Simon Peyton Jones <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <[email protected]>
Repository : ssh://darcs.haskell.org//srv/darcs/testsuite

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/19d638e86c66b69e862248fba8b67357a302d25e

>---------------------------------------------------------------

commit 19d638e86c66b69e862248fba8b67357a302d25e
Author: Simon Peyton Jones <[email protected]>
Date:   Wed Oct 3 08:05:25 2012 +0100

    We weren't generating a stats file for tests that only had stats_range_fields perf tests
    
    I fixed this in a plausible looking way, similar to compiler_stats_range/num fields.

>---------------------------------------------------------------

 driver/testlib.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/driver/testlib.py b/driver/testlib.py
index 6937f67..5853413 100644
--- a/driver/testlib.py
+++ b/driver/testlib.py
@@ -1165,7 +1165,7 @@ def simple_run( name, way, prog, args ):
     my_rts_flags = rts_flags(way)
 
     stats_file = name + '.stats'
-    if len(opts.stats_num_fields) > 0:
+    if len(opts.stats_num_fields) + len(opts.stats_range_fields) > 0:
         args += ' +RTS -V0 -t' + stats_file + ' --machine-readable -RTS'
 
     if opts.no_stdin:
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.