diff options
author | Gabe Black <gabeblack@google.com> | 2017-12-03 01:39:41 -0800 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2017-12-12 19:46:04 +0000 |
commit | 364a80fbf78dbecb02565c367f96720e907cd8f2 (patch) | |
tree | fda6c5309c66e165c6594061540e8cc4a4f90989 /src/base/SConscript | |
parent | 211124aff2c0750d1b80f0cd71fec3f06c50bcc6 (diff) | |
download | gem5-364a80fbf78dbecb02565c367f96720e907cd8f2.tar.xz |
tests: Add an implementation of the Logger interface for use gtests.
On exiting log types (panic and fatal), the message is set to an
ADD_FAILURE_AT macro, and the test is exited by throwing an otherwise
unexpected exception. On non-exiting log types, the message is sent to
the SUCCEEDED macro which currently doesn't output anything.
Change-Id: I1bb569e6cb8308dbc4c3e04eea7a962bd2b1ddd8
Reviewed-on: https://gem5-review.googlesource.com/6264
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/base/SConscript')
-rw-r--r-- | src/base/SConscript | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base/SConscript b/src/base/SConscript index fb14c4dc3..efb77431d 100644 --- a/src/base/SConscript +++ b/src/base/SConscript @@ -40,7 +40,7 @@ Source('bigint.cc') Source('imgwriter.cc') Source('bmpwriter.cc') Source('callback.cc') -Source('cprintf.cc') +Source('cprintf.cc', add_tags='gtest lib') Source('debug.cc') if env['USE_FENV']: Source('fenv.c') |