From 5f17077cb1863602b9c176ee34dc74a2dcdbbb36 Mon Sep 17 00:00:00 2001 From: Kristofer Berggren Date: Sat, 22 Jan 2022 10:56:28 +0800 Subject: [PATCH] fix failing tests in case of wrapper build warnings, e.g. on raspbian --- src/cpuusage | 4 ++-- src/cpuusage.1 | 4 ++-- tests/test001 | 2 +- tests/test002 | 2 +- tests/test003 | 2 +- tests/test004 | 2 +- tests/test005 | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/cpuusage b/src/cpuusage index 37b6640..15dd9e9 100755 --- a/src/cpuusage +++ b/src/cpuusage @@ -78,9 +78,9 @@ showusage() # Version showversion() { - echo "cpuusage v1.46" + echo "cpuusage v1.47" echo "" - echo "Copyright (C) 2017-2021 Kristofer Berggren" + echo "Copyright (C) 2017-2022 Kristofer Berggren" echo "" echo "cpuusage is distributed under the BSD 3-Clause license." echo "" diff --git a/src/cpuusage.1 b/src/cpuusage.1 index ed324f9..e982a7a 100644 --- a/src/cpuusage.1 +++ b/src/cpuusage.1 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man. -.TH CPUUSAGE "1" "December 2021" "cpuusage v1.46" "User Commands" +.TH CPUUSAGE "1" "January 2022" "cpuusage v1.47" "User Commands" .SH NAME cpuusage \- instrumentation CPU profiler .SH SYNOPSIS @@ -126,6 +126,6 @@ Written by Kristofer Berggren .SH "REPORTING BUGS" Report bugs at https://github.com/d99kris/cpuusage .SH COPYRIGHT -Copyright \(co 2017\-2021 Kristofer Berggren +Copyright \(co 2017\-2022 Kristofer Berggren .PP cpuusage is distributed under the BSD 3\-Clause license. diff --git a/tests/test001 b/tests/test001 index cc1f2c9..8da98cb 100755 --- a/tests/test001 +++ b/tests/test001 @@ -5,7 +5,7 @@ RV=0 TMPDIR=$(mktemp -d) # Run application -./bin/cpuusage -v -o out.html -f fopen,fwrite,fread,fclose ./ex001 &> ${TMPDIR}/out.txt +./bin/cpuusage -v -o out.html -f fopen,fwrite,fread,fclose ./ex001 > ${TMPDIR}/out.txt # Expected # cpuusage: https://github.com/d99kris/cpuusage diff --git a/tests/test002 b/tests/test002 index 4fdd471..8dafe31 100755 --- a/tests/test002 +++ b/tests/test002 @@ -5,7 +5,7 @@ RV=0 TMPDIR=$(mktemp -d) # Run application -./bin/cpuusage -v -o out.html -c ./ex002 &> ${TMPDIR}/out.txt +./bin/cpuusage -v -o out.html -c ./ex002 > ${TMPDIR}/out.txt # Expected # cpuusage: https://github.com/d99kris/cpuusage diff --git a/tests/test003 b/tests/test003 index 49ca53d..02473e8 100755 --- a/tests/test003 +++ b/tests/test003 @@ -8,7 +8,7 @@ pushd ${TMPDIR} > /dev/null # Run application ${BUILDDIR}/ex003 -${BUILDDIR}/bin/cpuusage -v -r culog.json &> ${TMPDIR}/out.txt +${BUILDDIR}/bin/cpuusage -v -r culog.json > ${TMPDIR}/out.txt # Expected # cpuusage: https://github.com/d99kris/cpuusage diff --git a/tests/test004 b/tests/test004 index 853f01b..09f0ff0 100755 --- a/tests/test004 +++ b/tests/test004 @@ -5,7 +5,7 @@ RV=0 TMPDIR=$(mktemp -d) # Run application -./bin/cpuusage -v -o ${TMPDIR}/out.html -j ${TMPDIR}/out.json -p ./ex004 &> ${TMPDIR}/out.txt +./bin/cpuusage -v -o ${TMPDIR}/out.html -j ${TMPDIR}/out.json -p ./ex004 > ${TMPDIR}/out.txt # Expected # cpuusage: https://github.com/d99kris/cpuusage diff --git a/tests/test005 b/tests/test005 index e82cd22..15c2c33 100755 --- a/tests/test005 +++ b/tests/test005 @@ -5,7 +5,7 @@ RV=0 TMPDIR=$(mktemp -d) # Run application -./bin/cpuusage -v -o ${TMPDIR}/out.html -j ${TMPDIR}/out.json -p ./ex005.sh &> ${TMPDIR}/out.txt +./bin/cpuusage -v -o ${TMPDIR}/out.html -j ${TMPDIR}/out.json -p ./ex005.sh > ${TMPDIR}/out.txt # Expected # cpuusage: https://github.com/d99kris/cpuusage