forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add configuration option for more verbose VerifyOrDie messages. (proj…
…ect-chip#9800) We have a lot of VerifyOrDie with no messages, and when they fail it's hard to tell what went wrong. This change adds a configuration option to automatically generate a verbose message string for VerifyOrDie if one is not provided. The option is off by default but enabled for Darwin and Linux. Log from a failing unit test without this change: [1631900831920] [73638:57013508] CHIP: [EM] Piggybacking Ack for MessageCounter:0000000D with msg ../../third_party/pigweed/repo/targets/host/run_test: line 18: 73638 Abort trap: 6 "$@" INF Test 1/1: [FAIL] TestReliableMessageProtocol Log from the same failure with this change: [1631900926163] [79197:57035322] CHIP: [EM] Piggybacking Ack for MessageCounter:0000000D with msg [1631900926163] [79197:57035322] CHIP: [SPT] VerifyOrDie failure at ../../src/messaging/ReliableMessageMgr.cpp:262: rc != nullptr && !rc->IsOccupied() ../../third_party/pigweed/repo/targets/host/run_test: line 18: 79197 Abort trap: 6 "$@" INF Test 1/1: [FAIL] TestReliableMessageProtocol
- Loading branch information
1 parent
adb4180
commit e9f5b89
Showing
4 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters