logger: fix unmatched expected warnings and errors
authorZachary Snow <zach@zachjs.com>
Tue, 4 Jan 2022 03:12:22 +0000 (20:12 -0700)
committerZachary Snow <zachary.j.snow@gmail.com>
Tue, 4 Jan 2022 20:39:34 +0000 (13:39 -0700)
commit66447e8fafa53396510b9a2c789fef6e5df0d6ac
tree37c0332a075e37259e35bd9ab9a54bf3832a9652
parentb022fe61a7e0cbe93124a5db243083e65f51fd85
logger: fix unmatched expected warnings and errors

- Prevent unmatched expected error patterns from self-matching
- Prevent infinite recursion on unmatched expected warnings
- Always print the error message for unmatched error patterns
- Add test coverage for all unmatched message types
- Add test coverage for excess matched logs and warnings
kernel/log.cc
tests/various/logger_fail.sh [new file with mode: 0755]