diff options
Diffstat (limited to 'testsuite/dwz.tests/devel-ignore-locus.sh')
-rw-r--r-- | testsuite/dwz.tests/devel-ignore-locus.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/testsuite/dwz.tests/devel-ignore-locus.sh b/testsuite/dwz.tests/devel-ignore-locus.sh new file mode 100644 index 0000000..a8b2dcd --- /dev/null +++ b/testsuite/dwz.tests/devel-ignore-locus.sh @@ -0,0 +1,27 @@ +cp $execs/two-typedef 1 + +cnt=$(readelf -wi 1 \ + | grep 'DW_AT_name.*: aaa' \ + | wc -l) + +[ $cnt -eq 2 ] + +$execs/dwz-for-test 1 2>/dev/null + +cnt=$(readelf -wi 1 \ + | grep 'DW_AT_name.*: aaa' \ + | wc -l) + +[ $cnt -eq 2 ] + +cp $execs/two-typedef 1 + +$execs/dwz-for-test --devel-ignore-locus --devel-ignore-size 1 + +cnt=$(readelf -wi 1 \ + | grep 'DW_AT_name.*: aaa' \ + | wc -l) + +[ $cnt -eq 1 ] + +rm -f 1 |