[RFC,07/11] addr2line: Do not test demangling in run-addr2line-i-test.sh

Message ID 20230206222513.1773039-8-iii@linux.ibm.com
State Committed
Headers
Series Add Memory Sanitizer support |

Commit Message

Ilya Leoshkevich Feb. 6, 2023, 10:25 p.m. UTC
  There is run-addr2line-i-demangle-test.sh for that.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
---
 tests/run-addr2line-i-test.sh | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
  

Comments

Mark Wielaard Feb. 8, 2023, 6:15 p.m. UTC | #1
Hi Ilya,

On Mon, 2023-02-06 at 23:25 +0100, Ilya Leoshkevich via Elfutils-devel
wrote:
> There is run-addr2line-i-demangle-test.sh for that.

Well spotted. Pushed as is.

Thanks,

Mark

> Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
> ---
>  tests/run-addr2line-i-test.sh | 14 +++++++-------
>  1 file changed, 7 insertions(+), 7 deletions(-)
> 
> diff --git a/tests/run-addr2line-i-test.sh b/tests/run-addr2line-i-test.sh
> index 4f63e487..e7b89083 100755
> --- a/tests/run-addr2line-i-test.sh
> +++ b/tests/run-addr2line-i-test.sh
> @@ -254,13 +254,13 @@ EOF
>  
>  testfiles testfile-inlines-lto
>  
> -testrun_compare ${abs_top_builddir}/src/addr2line --pretty -fiC -e testfile-inlines-lto 0x1118 0x1137 <<\EOF
> -foobar(int) at /tmp/x.cpp:4:14
> - (inlined by) foo(int) at /tmp/x.cpp:22:16
> - (inlined by) fu(int) at /tmp/x.cpp:27:13
> -fubar(int) at /tmp/x.cpp:10:14
> - (inlined by) bar(int) at /tmp/x.cpp:16:15
> - (inlined by) fu(int) at /tmp/x.cpp:27:24
> +testrun_compare ${abs_top_builddir}/src/addr2line --pretty -fi -e testfile-inlines-lto 0x1118 0x1137 <<\EOF
> +_Z6foobari at /tmp/x.cpp:4:14
> + (inlined by) _Z3fooi at /tmp/x.cpp:22:16
> + (inlined by) _Z2fui at /tmp/x.cpp:27:13
> +_Z5fubari at /tmp/x.cpp:10:14
> + (inlined by) _Z3bari at /tmp/x.cpp:16:15
> + (inlined by) _Z2fui at /tmp/x.cpp:27:24
>  EOF
>  
>  exit 0
  

Patch

diff --git a/tests/run-addr2line-i-test.sh b/tests/run-addr2line-i-test.sh
index 4f63e487..e7b89083 100755
--- a/tests/run-addr2line-i-test.sh
+++ b/tests/run-addr2line-i-test.sh
@@ -254,13 +254,13 @@  EOF
 
 testfiles testfile-inlines-lto
 
-testrun_compare ${abs_top_builddir}/src/addr2line --pretty -fiC -e testfile-inlines-lto 0x1118 0x1137 <<\EOF
-foobar(int) at /tmp/x.cpp:4:14
- (inlined by) foo(int) at /tmp/x.cpp:22:16
- (inlined by) fu(int) at /tmp/x.cpp:27:13
-fubar(int) at /tmp/x.cpp:10:14
- (inlined by) bar(int) at /tmp/x.cpp:16:15
- (inlined by) fu(int) at /tmp/x.cpp:27:24
+testrun_compare ${abs_top_builddir}/src/addr2line --pretty -fi -e testfile-inlines-lto 0x1118 0x1137 <<\EOF
+_Z6foobari at /tmp/x.cpp:4:14
+ (inlined by) _Z3fooi at /tmp/x.cpp:22:16
+ (inlined by) _Z2fui at /tmp/x.cpp:27:13
+_Z5fubari at /tmp/x.cpp:10:14
+ (inlined by) _Z3bari at /tmp/x.cpp:16:15
+ (inlined by) _Z2fui at /tmp/x.cpp:27:24
 EOF
 
 exit 0