diff options
author | Sven Gothel <[email protected]> | 2021-09-01 23:44:30 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2021-09-01 23:44:30 +0200 |
commit | e0e469b3bd3f4332488b75334b1326a0a452dce8 (patch) | |
tree | 2b946d0616484e3310c3a98ca21b80c40b5dbb6e /test | |
parent | 501ffc3cf8386905a546df6a9ff43467ed2d9a7a (diff) |
std::error_code HCIStatusCode: Refine HCIStatusCodeCategory::message(..)
Well, the overloaded '<<' operator uses HCIStatusCodeCategory::name() + ':' + (int)value.
Nonetheless, have message() show the actual string value.
Diffstat (limited to 'test')
-rw-r--r-- | test/direct_bt/test_misc_types.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/direct_bt/test_misc_types.cpp b/test/direct_bt/test_misc_types.cpp index e9e7673d..95793d67 100644 --- a/test/direct_bt/test_misc_types.cpp +++ b/test/direct_bt/test_misc_types.cpp @@ -17,9 +17,9 @@ TEST_CASE( "HCIStatusCodeCategory std::error_code Test", "[HCIStatusCode][HCISta std::error_code ec_12(HCIStatusCode::COMMAND_DISALLOWED); std::error_code ec_42 = make_error_code(HCIStatusCode::DIFFERENT_TRANSACTION_COLLISION); - std::cout << "ec_0: " << ec_0 << std::endl; - std::cerr << "ec_12: " << ec_12 << std::endl; - std::cerr << "ec_42: " << ec_42 << std::endl; + std::cout << "ec_0: " << ec_0 << ", " << ec_0.message() << std::endl; + std::cerr << "ec_12: " << ec_12 << ", " << ec_12.message() << std::endl; + std::cerr << "ec_42: " << ec_42 << ", " << ec_42.message() << std::endl; REQUIRE( HCIStatusCodeCategory::get() == ec_0.category() ); REQUIRE( HCIStatusCodeCategory::get() == ec_12.category() ); |