public inbox for dwz@sourceware.org
 help / color / mirror / Atom feed
* [Bug default/27694] New: [dwz, testsuite] smaller-than.sh: line 18: 16#: invalid integer constant (error token is "16#")
@ 2021-04-04 18:31 vries at gcc dot gnu.org
  2021-04-04 18:32 ` [Bug default/27694] " vries at gcc dot gnu.org
  2021-04-07  4:16 ` vries at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: vries at gcc dot gnu.org @ 2021-04-04 18:31 UTC (permalink / raw)
  To: dwz

https://sourceware.org/bugzilla/show_bug.cgi?id=27694

            Bug ID: 27694
           Summary: [dwz, testsuite] smaller-than.sh: line 18: 16#:
                    invalid integer constant (error token is "16#")
           Product: dwz
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: default
          Assignee: nobody at sourceware dot org
          Reporter: vries at gcc dot gnu.org
                CC: dwz at sourceware dot org
  Target Milestone: ---

On openSUSE tumbleweed I run into:
...
Running /data/vries/dwz/dwz.git/testsuite/dwz.tests/dwz-tests.exp ...
/data/vries/dwz/dwz.git/testsuite/scripts/smaller-than.sh: line 18: 16#:
invalid integer constant (error token is "16#")
/data/vries/dwz/dwz.git/testsuite/scripts/smaller-than.sh: line 30: 214592 + :
syntax error: operand expected (error token is "+ ")
/data/vries/dwz/dwz.git/testsuite/scripts/smaller-than.sh: line 18: 16#:
invalid integer constant (error token is "16#")
/data/vries/dwz/dwz.git/testsuite/scripts/smaller-than.sh: line 30: 236055 + :
syntax error: operand expected (error token is "+ ")
FAIL: /data/vries/dwz/dwz.git/testsuite/dwz.tests/dwz.sh
...

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug default/27694] [dwz, testsuite] smaller-than.sh: line 18: 16#: invalid integer constant (error token is "16#")
  2021-04-04 18:31 [Bug default/27694] New: [dwz, testsuite] smaller-than.sh: line 18: 16#: invalid integer constant (error token is "16#") vries at gcc dot gnu.org
@ 2021-04-04 18:32 ` vries at gcc dot gnu.org
  2021-04-07  4:16 ` vries at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: vries at gcc dot gnu.org @ 2021-04-04 18:32 UTC (permalink / raw)
  To: dwz

https://sourceware.org/bugzilla/show_bug.cgi?id=27694

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
Fixed by:
...
diff --git a/testsuite/scripts/smaller-than.sh
b/testsuite/scripts/smaller-than.sh
index ab06e3a..6902bc1 100755
--- a/testsuite/scripts/smaller-than.sh
+++ b/testsuite/scripts/smaller-than.sh
@@ -13,6 +13,10 @@ section_size ()
            | grep "\.debug_$section" \
            | sed 's/.*\.debug_//' \
            | awk '{print $5}')
+    if [ "$s" = "" ]; then
+       echo 0
+       return
+    fi

     # Convert hex to decimal.
     s=$(printf "%d" $((16#$s)))
...

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug default/27694] [dwz, testsuite] smaller-than.sh: line 18: 16#: invalid integer constant (error token is "16#")
  2021-04-04 18:31 [Bug default/27694] New: [dwz, testsuite] smaller-than.sh: line 18: 16#: invalid integer constant (error token is "16#") vries at gcc dot gnu.org
  2021-04-04 18:32 ` [Bug default/27694] " vries at gcc dot gnu.org
@ 2021-04-07  4:16 ` vries at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: vries at gcc dot gnu.org @ 2021-04-07  4:16 UTC (permalink / raw)
  To: dwz

https://sourceware.org/bugzilla/show_bug.cgi?id=27694

Tom de Vries <vries at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
https://sourceware.org/git/?p=dwz.git;a=commit;h=43cf049b1227d69a9f6f4e1cd66e31b7433a0255

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-04-07  4:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-04 18:31 [Bug default/27694] New: [dwz, testsuite] smaller-than.sh: line 18: 16#: invalid integer constant (error token is "16#") vries at gcc dot gnu.org
2021-04-04 18:32 ` [Bug default/27694] " vries at gcc dot gnu.org
2021-04-07  4:16 ` vries at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).