[binutils-gdb] Add selftests for range_contains and insert_into_bit_range_vector
sergiodj+buildbot@sergiodj.net
sergiodj+buildbot@sergiodj.net
Mon Apr 9 20:22:00 GMT 2018
*** TEST RESULTS FOR COMMIT d5f4488f09b811b0ca44e687da2acbc286d84d4a ***
Author: Simon Marchi <simon.marchi@polymtl.ca>
Branch: master
Commit: d5f4488f09b811b0ca44e687da2acbc286d84d4a
Add selftests for range_contains and insert_into_bit_range_vector
Add some selftests for these two functions. To to make it easier to
compare sequences of ranges, add operator== and operator!= to compare
two gdb::array_view, and add operator== in struct range.
gdb/ChangeLog:
* value.c: Include "selftest.h" and "common/array-view.h".
(struct range) <operator ==>: New.
(test_ranges_contain): New.
(check_ranges_vector): New.
(test_insert_into_bit_range_vector): New.
(_initialize_values): Register selftests.
* common/array-view.h (operator==, operator!=): New.
More information about the Gdb-testers
mailing list