diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-09-06 15:48:34 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-09-06 15:48:34 +0000 |
commit | 809df4465f01277ab689fb82b3f16ff79f9a2606 (patch) | |
tree | dfaee9ceb5af26215214a58dff43eb8b6cb8373e /gdb/testsuite/gdb.pascal | |
parent | bbb3c81a449f089121b8d6d5527991dcd6dff0d3 (diff) | |
download | gdb-809df4465f01277ab689fb82b3f16ff79f9a2606.zip gdb-809df4465f01277ab689fb82b3f16ff79f9a2606.tar.gz gdb-809df4465f01277ab689fb82b3f16ff79f9a2606.tar.bz2 |
gdb/testsuite/
* gdb.base/printcmds.exp (test_float_accepted): Import gdb_prompt.
Move here, negate and extend by XFAIL the "p 0x1.1" test from ...
(test_float_rejected): ... here.
* gdb.java/jv-print.exp (test_float_accepted): Import gdb_prompt.
Move here, negate and extend by XFAIL the "p 0x1.1" test from ...
(test_float_rejected): ... here.
* gdb.objc/print.exp (test_float_accepted): Import gdb_prompt.
Move here, negate and extend by XFAIL the "p 0x1.1" test from ...
(test_float_rejected): ... here.
* gdb.pascal/print.exp (test_float_accepted): Import gdb_prompt.
Move here, negate and extend by XFAIL the "p 0x1.1" test from ...
(test_float_rejected): ... here.
Diffstat (limited to 'gdb/testsuite/gdb.pascal')
-rw-r--r-- | gdb/testsuite/gdb.pascal/print.exp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.pascal/print.exp b/gdb/testsuite/gdb.pascal/print.exp index 61f6d37..e8e4f44 100644 --- a/gdb/testsuite/gdb.pascal/print.exp +++ b/gdb/testsuite/gdb.pascal/print.exp @@ -28,6 +28,8 @@ if $tracelevel { load_lib "pascal.exp" proc test_float_accepted {} { + global gdb_prompt + # Test parsing of fp value with legit text following. gdb_test "p 1234.5+1" " = 1235.5" "check fp + text" @@ -38,12 +40,21 @@ proc test_float_accepted {} { gdb_test "p 1.5f" " = 1.5" gdb_test "p 1.l" " = 1" gdb_test "p 1.5l" " = 1.5" + + # Test hexadecimal floating point. + set test "p 0x1.1" + gdb_test_multiple $test $test { + -re " = 1\\.0625\r\n$gdb_prompt $" { + pass $test + } + -re "Invalid number \"0x1\\.1\"\\.\r\n$gdb_prompt $" { + # Older glibc does not support hex float, newer does. + xfail $test + } + } } proc test_float_rejected {} { - # Test invalid fp values. - test_print_reject "p 0x1.1" - # Test bad suffixes. test_print_reject "p 1.1x" test_print_reject "p 1.1ff" |