diff options
author | Tom de Vries <tdevries@suse.de> | 2022-06-04 13:17:32 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2022-06-04 13:17:32 +0200 |
commit | 1b4633f812b329863a523c4d798c2b55417b5144 (patch) | |
tree | cc8deec30d5018f3594d713857ca15155cea3373 /gdb/python | |
parent | 0c05610450e5f19f03245ac646587e35cab53e7b (diff) | |
download | binutils-1b4633f812b329863a523c4d798c2b55417b5144.zip binutils-1b4633f812b329863a523c4d798c2b55417b5144.tar.gz binutils-1b4633f812b329863a523c4d798c2b55417b5144.tar.bz2 |
[gdb/testsuite] Test more values in gdb.base/parse_numbers.exp
Currently we only test value 0xffffffffffffffff in test-case
gdb.base/parse_numbers.exp.
Test more interesting values, both in decimal and hex format, as well as
negative decimals for language modula-2.
This results in an increase in total tests from 15572 to 847448 (55 times
more tests).
Balance out the increase in runtime by reducing the number of architectures
tested: only test one architecture per sizeof longlong/long/int/short
combination, while keeping the possibility intact to run with all
architectures (through setting a variable in the test-case)
Results in slight reduction of total tests: 15572 -> 13853.
Document interesting cases in the expected results:
- wrapping from unsigned to signed
- truncation
- PR16377: using unsigned types to represent decimal constants in C
Running the test-case with a gdb build with -fsanitize=undefined, we trigger
two UB errors in the modula-2 parser, filed as PR29163.
Tested on x86_64-linux with --enable-targets=all.
Diffstat (limited to 'gdb/python')
0 files changed, 0 insertions, 0 deletions