public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/29053] New: [m32] FAIL: gdb.fortran/lbound-ubound.exp: test 12: check value of lbound ('array_1d_4bytes_overflow') expression
@ 2022-04-13 4:19 vries at gcc dot gnu.org
2022-05-05 11:19 ` [Bug fortran/29053] " vries at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: vries at gcc dot gnu.org @ 2022-04-13 4:19 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29053
Bug ID: 29053
Summary: [m32] FAIL: gdb.fortran/lbound-ubound.exp: test 12:
check value of lbound ('array_1d_4bytes_overflow')
expression
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: fortran
Assignee: unassigned at sourceware dot org
Reporter: vries at gcc dot gnu.org
Target Milestone: ---
With target board unix/-m32, I run into:
...
FAIL: gdb.fortran/lbound-ubound.exp: test 12: check value of lbound
('array_1d_4bytes_overflow') expression
FAIL: gdb.fortran/lbound-ubound.exp: test 12: check value of ubound
('array_1d_4bytes_overflow') expression
FAIL: gdb.fortran/lbound-ubound.exp: test 12: lbounds match
FAIL: gdb.fortran/lbound-ubound.exp: test 12: ubounds match
FAIL: gdb.fortran/lbound-ubound.exp: p lbound(array_1d_4bytes_overflow, 1, 8)
...
In more detail:
...
(gdb) p lbound (array_1d_4bytes_overflow)^M
$71 = (2147483644)^M
(gdb) FAIL: gdb.fortran/lbound-ubound.exp: test 12: check value of lbound
('array_1d_4bytes_overflow') expression
p ubound (array_1d_4bytes_overflow)^M
$72 = (-2147483637)^M
(gdb) FAIL: gdb.fortran/lbound-ubound.exp: test 12: check value of ubound
('array_1d_4bytes_overflow') expression
...
With native instead I get:
...
(gdb) p lbound (array_1d_4bytes_overflow)^M
$71 = (2147483644)^M
(gdb) PASS: gdb.fortran/lbound-ubound.exp: test 12: check value of lbound
('array_1d_4bytes_overflow') expression
p ubound (array_1d_4bytes_overflow)^M
$72 = (-2147483637)^M
(gdb) PASS: gdb.fortran/lbound-ubound.exp: test 12: check value of ubound
('array_1d_4bytes_overflow') expression
...
Hmm, that's the same output, so the difference is in the expected value. Let's
annotate that in the test name:
...
diff --git a/gdb/testsuite/gdb.fortran/lbound-ubound.exp
b/gdb/testsuite/gdb.fortran/lbound
-ubound.exp
index 334713666e0..f4093092a11 100644
--- a/gdb/testsuite/gdb.fortran/lbound-ubound.exp
+++ b/gdb/testsuite/gdb.fortran/lbound-ubound.exp
@@ -137,10 +137,10 @@ while { $test_count < 500 } {
# lower bounds for an array.
set pattern [string_to_regexp " = $expected_lbound"]
gdb_test "p lbound ($array_name)" "$pattern" \
- "check value of lbound ('$array_name') expression"
+ "check value of lbound ('$array_name') expression, expected:
$expected_lbound"
set pattern [string_to_regexp " = $expected_ubound"]
gdb_test "p ubound ($array_name)" "$pattern" \
- "check value of ubound ('$array_name') expression"
+ "check value of ubound ('$array_name') expression, expected:
$expected_ubound"
# Now ask for each bound in turn and check it against the
# expected results.
...
That's a mismatch indeed:
...
(gdb) p lbound (array_1d_4bytes_overflow)^M
$71 = (2147483644)^M
(gdb) FAIL: gdb.fortran/lbound-ubound.exp: test 12: check value of lbound
('array_1d_4bytes_overflow') expression, expected: (1)
p ubound (array_1d_4bytes_overflow)^M
$72 = (-2147483637)^M
(gdb) FAIL: gdb.fortran/lbound-ubound.exp: test 12: check value of ubound
('array_1d_4bytes_overflow') expression, expected: (0)
...
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/29053] [m32] FAIL: gdb.fortran/lbound-ubound.exp: test 12: check value of lbound ('array_1d_4bytes_overflow') expression
2022-04-13 4:19 [Bug fortran/29053] New: [m32] FAIL: gdb.fortran/lbound-ubound.exp: test 12: check value of lbound ('array_1d_4bytes_overflow') expression vries at gcc dot gnu.org
@ 2022-05-05 11:19 ` vries at gcc dot gnu.org
2022-05-10 13:34 ` nils-christian.kempke at intel dot com
2022-05-10 13:39 ` vries at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: vries at gcc dot gnu.org @ 2022-05-05 11:19 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29053
--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
https://sourceware.org/pipermail/gdb-patches/2022-April/188248.html
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/29053] [m32] FAIL: gdb.fortran/lbound-ubound.exp: test 12: check value of lbound ('array_1d_4bytes_overflow') expression
2022-04-13 4:19 [Bug fortran/29053] New: [m32] FAIL: gdb.fortran/lbound-ubound.exp: test 12: check value of lbound ('array_1d_4bytes_overflow') expression vries at gcc dot gnu.org
2022-05-05 11:19 ` [Bug fortran/29053] " vries at gcc dot gnu.org
@ 2022-05-10 13:34 ` nils-christian.kempke at intel dot com
2022-05-10 13:39 ` vries at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: nils-christian.kempke at intel dot com @ 2022-05-10 13:34 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29053
Kempke, Nils-Christian <nils-christian.kempke at intel dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nils-christian.kempke@intel
| |.com
--- Comment #2 from Kempke, Nils-Christian <nils-christian.kempke at intel dot com> ---
The referenced patch was reviewed and was pushed to master. This should close
the ticket.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/29053] [m32] FAIL: gdb.fortran/lbound-ubound.exp: test 12: check value of lbound ('array_1d_4bytes_overflow') expression
2022-04-13 4:19 [Bug fortran/29053] New: [m32] FAIL: gdb.fortran/lbound-ubound.exp: test 12: check value of lbound ('array_1d_4bytes_overflow') expression vries at gcc dot gnu.org
2022-05-05 11:19 ` [Bug fortran/29053] " vries at gcc dot gnu.org
2022-05-10 13:34 ` nils-christian.kempke at intel dot com
@ 2022-05-10 13:39 ` vries at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: vries at gcc dot gnu.org @ 2022-05-10 13:39 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29053
Tom de Vries <vries at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |13.1
--- Comment #3 from Tom de Vries <vries at gcc dot gnu.org> ---
Fixed, thanks.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-05-10 13:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-13 4:19 [Bug fortran/29053] New: [m32] FAIL: gdb.fortran/lbound-ubound.exp: test 12: check value of lbound ('array_1d_4bytes_overflow') expression vries at gcc dot gnu.org
2022-05-05 11:19 ` [Bug fortran/29053] " vries at gcc dot gnu.org
2022-05-10 13:34 ` nils-christian.kempke at intel dot com
2022-05-10 13:39 ` 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).