1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-05-05 14:25:16 +02:00

Stop using nonportable echo arguments in tests

echo arguments are not portable, so use printf when we need to print
tabs or newlines.
This commit is contained in:
Tommi Rantala 2012-08-02 11:57:09 +03:00
parent 96cc0e8316
commit 56f07a8e55
2 changed files with 6 additions and 6 deletions

View file

@ -299,7 +299,7 @@ check_cxx_abi () {
check_empty () {
if [ -n "$symtab" ]; then
echo -e " ERROR: Extraneous symbols:\n$symtab"
printf " ERROR: Extraneous symbols:\n$symtab\n"
num_errors=`expr $num_errors + 1`
fi
}

View file

@ -5,15 +5,15 @@ LIBUNWIND_PLAT=../src/.libs/libunwind-$platform.so
warmup=$(./forker 2000 /bin/true | cut -f1 -d' ')
nsec1=$(./forker 2000 /bin/true | cut -f1 -d' ')
echo -e \"/bin/true\""\t\t\t\t\t\t": $nsec1 nsec/execution
printf "\"/bin/true\"\t\t\t\t\t\t: $nsec1 nsec/execution\n"
nsec2=$(LD_PRELOAD=$LIBUNWIND ./forker 2000 /bin/true | cut -f1 -d' ')
echo -e \"LD_PRELOAD=$LIBUNWIND /bin/true\""\t": $nsec2 nsec/execution
printf "\"LD_PRELOAD=$LIBUNWIND /bin/true\"\t: $nsec2 nsec/execution\n"
nsec3=$(LD_PRELOAD=$LIBUNWIND_PLAT ./forker 2000 /bin/true | cut -f1 -d' ')
echo -e \"LD_PRELOAD=$LIBUNWIND_PLAT /bin/true\""\t": $nsec3 nsec/execution
printf "\"LD_PRELOAD=$LIBUNWIND_PLAT /bin/true\"\t: $nsec3 nsec/execution\n"
echo
echo -e "Overhead of preloading $LIBUNWIND\t: " $(($nsec2 - $nsec1)) nsec
echo -e "Overhead of preloading $LIBUNWIND_PLAT\t: " $(($nsec3 - $nsec1)) nsec
printf "Overhead of preloading $LIBUNWIND\t: $(($nsec2 - $nsec1)) nsec\n"
printf "Overhead of preloading $LIBUNWIND_PLAT\t: $(($nsec3 - $nsec1)) nsec\n"