]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Merge r9283 (lackey testing fixes) from the DARWIN branch.
authorNicholas Nethercote <njn@valgrind.org>
Thu, 26 Feb 2009 22:26:45 +0000 (22:26 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Thu, 26 Feb 2009 22:26:45 +0000 (22:26 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9284

lackey/lk_main.c
lackey/tests/filter_stderr
lackey/tests/true.stderr.exp
tests/filter_numbers

index dd502c5bd7a716633c0774cb1aa741e522297038..81467106ae57f56ba77cd5875bfd2ab80baf63d0 100644 (file)
@@ -886,12 +886,12 @@ static void lk_fini(Int exitcode)
       VG_(message)(Vg_UserMsg, "");
       VG_(message)(Vg_UserMsg, "Ratios:");
       tl_assert(n_SBs_entered); // Paranoia time.
-      VG_(message)(Vg_UserMsg, "  guest instrs : SB entered  = %3llu : 10",
+      VG_(message)(Vg_UserMsg, "  guest instrs : SB entered  = %'llu : 10",
          10 * n_guest_instrs / n_SBs_entered);
-      VG_(message)(Vg_UserMsg, "       IRStmts : SB entered  = %3llu : 10",
+      VG_(message)(Vg_UserMsg, "       IRStmts : SB entered  = %'llu : 10",
          10 * n_IRStmts / n_SBs_entered);
       tl_assert(n_guest_instrs); // Paranoia time.
-      VG_(message)(Vg_UserMsg, "       IRStmts : guest instr = %3llu : 10",
+      VG_(message)(Vg_UserMsg, "       IRStmts : guest instr = %'llu : 10",
          10 * n_IRStmts / n_guest_instrs);
    }
 
index 94c488100d53a2dea904356231d6491793740ed8..b3df7f2af3c1e76562ddccd35433cf39092c64b5 100755 (executable)
@@ -7,28 +7,5 @@ $dir/../../tests/filter_stderr_basic    |
 # Remove "Lackey, ..." line and the following copyright line.
 sed "/^Lackey, an example Valgrind tool./ , /./ d" |
 
-# Output looks like this...
-#
-# Counted 53 calls to _dl_runtime_resolve()
-#  
-#  Executed:
-#    BBs:         47131
-#    x86 instrs:  193330
-#    UInstrs:     523996
-#  
-#  Jccs:
-#    total:       36368
-#    % taken:     58%
-#  
-#  Ratios:
-#    x86 instrs : BB        =  41 : 10
-#       UInstrs : BB        = 111 : 10
-#       UInstrs : x86_instr =  27 : 10
-#
-#  Exit code:     0
-#
-# ...so chop all lines between first and last (inclusive)
-sed "/^Counted [0-9]\+ calls to _dl_runtime_resolve()$/ ,   \
-     /UInstrs : x86_instrs = [0-9]\+ : [0-9]\+/             \
-     d"
-
+# Filter all the numbers.
+../../tests/filter_numbers
index 139597f9cb07c5d48bed18984ec4747f4b4f3438..9b568f4c5501550cfaaba95371656585c2dc8883 100644 (file)
@@ -1,2 +1,20 @@
 
 
+Counted ... calls to _dl_runtime_resolve()
+
+Jccs:
+  total:         ...
+  taken:         ... ( ...%)
+
+Executed:
+  SBs entered:   ...
+  SBs completed: ...
+  guest instrs:  ...
+  IRStmts:       ...
+
+Ratios:
+  guest instrs : SB entered  = ... : ...
+       IRStmts : SB entered  = ... : ...
+       IRStmts : guest instr = ... : ...
+
+Exit code:       ...
index b56935360641ba0fed4e544b501fd10af543be5f..f98d8c2fc5d9c8ac6ae30dddcddf7f903484ac8f 100755 (executable)
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-sed 's/[0-9]*/./'
+perl -p -e 's/[0-9,]+/.../g'