cut-and-pasto
[ghc-hetmet.git] / utils / runstdtest / runstdtest.prl
index 379c895..6059760 100644 (file)
@@ -96,7 +96,7 @@ arg: while ($_ = $ARGV[0]) {
     /^-accept-output$/        && do { $SaveStdout = 1; $SaveStderr = 1; next arg; };
 
     /^-stdout-binary/ && do { $StdoutBinary=1; next arg; };
-    /^-stdout-binary/ && do { $StderrBinary=1; next arg; };
+    /^-stderr-binary/ && do { $StderrBinary=1; next arg; };
 
     /^-O(.*)/  && do { push(@PgmArgs, &grab_arg_arg('-O',$1)); next arg; };
     /^-i(.*)/  && do { $PgmStdinFile = &grab_arg_arg('-i',$1);
@@ -409,7 +409,7 @@ sub process_stats_file {
 
            $GCs = $1 if /^\s*([0-9,]+) collections? in generation 0/;
 
-           if ( /^\s+([0-9]+)\s+Mb total memory/ ) {
+           if ( /^\s+([0-9]+)\s+M[Bb] total memory/ ) {
                $TotMem = $1;
            }