[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Libunwind-devel] [PATCH 10/27] Stop using nonportable echo arguments in
From: |
Tommi Rantala |
Subject: |
[Libunwind-devel] [PATCH 10/27] Stop using nonportable echo arguments in tests |
Date: |
Wed, 22 Aug 2012 14:28:36 +0300 |
echo arguments are not portable, so use printf when we need to print
tabs or newlines.
---
tests/check-namespace.sh.in | 2 +-
tests/perf-startup | 10 +++++-----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/tests/check-namespace.sh.in b/tests/check-namespace.sh.in
index e7705d4..d2e6efb 100644
--- a/tests/check-namespace.sh.in
+++ b/tests/check-namespace.sh.in
@@ -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
}
diff --git a/tests/perf-startup b/tests/perf-startup
index c370748..1c24e9a 100755
--- a/tests/perf-startup
+++ b/tests/perf-startup
@@ -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"
--
1.7.9.5
- [Libunwind-devel] [PATCH 00/27] Misc fixes II, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 04/27] Add PPC namespace checking, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 05/27] Ignore _fbss, _fdata, _ftext and _gp symbols on MIPS, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 08/27] Update .gitignore, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 11/27] MIPS: fix symbol naming for `mips_lock', `mips_local_resume', and `mips_local_addr_space_init', Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 15/27] MIPS: implement dwarf_to_unw_regnum() macro without table, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 13/27] Allow for architecture specific dwarf_to_unw_regnum(), Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 12/27] PPC: do not export dwarf_to_unw_regnum_map, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 10/27] Stop using nonportable echo arguments in tests,
Tommi Rantala <=
- [Libunwind-devel] [PATCH 14/27] ARM: implement dwarf_to_unw_regnum() macro without table, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 17/27] Use constants for ELF magic bytes in _UCD_create.c, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 23/27] Avoid -Wunused-value warning in tests/Gtest-exc.c, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 18/27] Remove unneeded length modifier from suppressed match in sscanf() format in tests/crasher.c, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 19/27] Fix memory leaks in unw_create_addr_space() wrong-endian error paths, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 16/27] Fix plain return from main() in tests/test-async-sig.c, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 22/27] test-resume-sig-rt: test unw_resume() in presence of "realtime" signal frame, Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 25/27] Place `inline' at beginning of declaration of invalidate_edi(), Tommi Rantala, 2012/08/22
- [Libunwind-devel] [PATCH 20/27] ARM: fix non-signal-frame local unw_resume() due to compiler optimization cleverness, Tommi Rantala, 2012/08/22