gcc/libstdc++-v3/testsuite
Jonathan Wakely a6f08be383 libstdc++: Fix incorrect test for std::error_code comparisons
The tests for std::error_code comparisons assumed that a default
constructed object uses std::generic_category(). That's true for a
default constructed std::error_condition, but not std::error_code.

Fix the three-way comparisons to correctly depend on the result of
comparing the categories, and add another test for comparing two objects
with the same category and different values.

libstdc++-v3/ChangeLog:

	* testsuite/19_diagnostics/error_code/operators/not_equal.cc:
	Add comparison with same category and different values.
	* testsuite/19_diagnostics/error_code/operators/less.cc:
	Likewise. Fix comparison involving different categories.
	* testsuite/19_diagnostics/error_code/operators/three_way.cc:
	Likewise.
	* testsuite/19_diagnostics/error_condition/operators/less.cc:
	Add comment.
	* testsuite/19_diagnostics/error_condition/operators/three_way.cc:
	Likewise.
2021-02-03 15:49:36 +00:00
..
17_intro
18_support
19_diagnostics libstdc++: Fix incorrect test for std::error_code comparisons 2021-02-03 15:49:36 +00:00
20_util libstdc++: Only test writing to wostream if supported [PR 98725] 2021-01-18 14:23:13 +00:00
21_strings libstdc++: Add string contains member functions for C++2b 2021-01-27 12:37:36 +00:00
22_locale
23_containers libstdc++: Make deque iterator operator- usable with value-init iterators 2021-02-01 19:19:53 +01:00
24_iterators
25_algorithms
26_numerics
27_io libstdc++: Fix narrow char test to use stringbuf not wstringbuf 2021-01-18 12:45:10 +00:00
28_regex
29_atomics libstdc++-v3: Add -fcf-protection=none to -march=i486 2021-01-15 17:37:20 -08:00
30_threads calibrate intervals to avoid zero in futures poll test 2021-01-14 16:12:22 -03:00
abi
backward
config
data
decimal
experimental libstc++: Implement hmin and hmax 2021-02-03 15:49:30 +00:00
ext libstdc++: Suppress more vstring testsuite warnings. [PR 98613] 2021-01-10 18:22:51 -05:00
lib
libstdc++-abi
libstdc++-dg libstdc++: Add std::experimental::simd from the Parallelism TS 2 2021-01-27 16:37:26 +00:00
libstdc++-prettyprinters
libstdc++-xmethods
performance
special_functions
std
tr1
tr2
util
Makefile.am libstdc++: Work around test failures using -mno-tree-vrp 2021-02-03 15:49:30 +00:00
Makefile.in libstdc++: Work around test failures using -mno-tree-vrp 2021-02-03 15:49:30 +00:00