From ea80f1a07a009ec9ee8097ea885f2fcd44495107 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 18 Oct 2006 17:58:26 +0200 Subject: [PATCH] =?UTF-8?q?Put=20the=20printf=20of=20failed=20ratio=20on?= =?UTF-8?q?=20it=C3=A4s=20only=20line,=20printf=20was=20tricked=20into=20t?= =?UTF-8?q?hinking=20the=20escaped=20%=20+=20w=20was=20a=20format=20specif?= =?UTF-8?q?ier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mysql-test/lib/mtr_report.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mysql-test/lib/mtr_report.pl b/mysql-test/lib/mtr_report.pl index e92cac5cfba..8d7de9d1a4b 100644 --- a/mysql-test/lib/mtr_report.pl +++ b/mysql-test/lib/mtr_report.pl @@ -203,8 +203,9 @@ sub mtr_report_stats ($) { else { my $ratio= $tot_passed * 100 / $tot_tests; - printf "Failed $tot_failed/$tot_tests tests, " . - "%.2f\% were successful.\n\n", $ratio; + print "Failed $tot_failed/$tot_tests tests, "; + printf("%.2f", $ratio); + print "\% were successful.\n\n"; print "The log files in var/log may give you some hint\n", "of what went wrong.\n",