summaryrefslogtreecommitdiff
path: root/src/systemc/tests/systemc/communication/sc_buffer/test02/sc_buffer_edge_reset.cpp
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-06-13 18:41:27 -0700
committerGabe Black <gabeblack@google.com>2018-08-15 01:36:01 +0000
commita51eb91659d759215422c73165ce2a46ccc7a662 (patch)
treef0cb2ac260bee5bdab5c9708b8f352f0b0515233 /src/systemc/tests/systemc/communication/sc_buffer/test02/sc_buffer_edge_reset.cpp
parentd8a149bb7dc2446a8d45d4ec4095f8f9bf3df7d3 (diff)
downloadgem5-a51eb91659d759215422c73165ce2a46ccc7a662.tar.xz
systemc: Remove references to internal constants from the tests.
The tests were referring to constants defined in the Accellera systemc implementation which identified various log message types. This change replaces those (sometimes quite long) string constants with their actual value. This doesn't make that interface any more fragile since the constant value won't track between the Accellera version and this one, but it does make its fragility more explicit by using the value directly. If in the future we decide to hide the magical nature of those particular string constants, we could make them into our own constants in the implementation. Regardless, the tests shouldn't refer to internal details of the implementation. Change-Id: I116a7407fcac49367649b250683117f3ccf4f9ed Reviewed-on: https://gem5-review.googlesource.com/11181 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc/tests/systemc/communication/sc_buffer/test02/sc_buffer_edge_reset.cpp')
-rw-r--r--src/systemc/tests/systemc/communication/sc_buffer/test02/sc_buffer_edge_reset.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/systemc/tests/systemc/communication/sc_buffer/test02/sc_buffer_edge_reset.cpp b/src/systemc/tests/systemc/communication/sc_buffer/test02/sc_buffer_edge_reset.cpp
index 98fe8a5bb..863e64ce7 100644
--- a/src/systemc/tests/systemc/communication/sc_buffer/test02/sc_buffer_edge_reset.cpp
+++ b/src/systemc/tests/systemc/communication/sc_buffer/test02/sc_buffer_edge_reset.cpp
@@ -73,8 +73,9 @@ SC_MODULE(print_edge)
int sc_main(int, char*[])
{
- sc_report_handler::set_actions( SC_ID_DISABLE_WILL_ORPHAN_PROCESS_
- , SC_DO_NOTHING );
+ sc_report_handler::set_actions( "disable() or dont_initialize() "
+ "called on process with no static sensitivity, it will be "
+ "orphaned", SC_DO_NOTHING );
sc_signal<int> sig_int;