From 85141250ac1265c0869f81a35541d343ae4485d4 Mon Sep 17 00:00:00 2001 From: thor Date: Sat, 1 Mar 2014 09:09:07 +0000 Subject: [PATCH] Also return an error if mpg123 had problems. git-svn-id: svn://scm.orgis.org/mpg123/trunk@3519 35dc7657-300d-0410-a2e5-dc2837fedb53 --- scripts/benchmark-cpu.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/benchmark-cpu.pl b/scripts/benchmark-cpu.pl index b28a98c4..88559bc5 100755 --- a/scripts/benchmark-cpu.pl +++ b/scripts/benchmark-cpu.pl @@ -37,6 +37,8 @@ print "#decoder"; for(@encs){ print " t_$_/s"; } print "\n"; +my $allret = 0; + foreach my $cpu (@cpus) { print "$cpu"; @@ -51,6 +53,7 @@ foreach my $cpu (@cpus) { print STDERR "Execution of $MPG123_CMD failed with code $ret!\n"; $runtime = 0; + $allret = 1; } # third entry is child user time printf(" %4.2f", $runtime); @@ -58,4 +61,4 @@ foreach my $cpu (@cpus) print("\n"); } - +exit($allret);