From cb1cd5af89548fa7132ae29ebd5e2a357bbaef73 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Fri, 5 Oct 2018 16:45:55 -0700 Subject: systemc: Use the "catch action" and the handler func outside sc_main. If an exception escapes sc_main, Accellera catches it and feeds it into the report handler, telling it to run the catch actions. This seems like it sets up lots of dangerous scenarios, and also makes a vital error detecting path more complex and error prone. On the other hand, it makes one of the tests pass. Change-Id: I7f9d07e01e63c7abeee903febe2e434041ec49a4 Reviewed-on: https://gem5-review.googlesource.com/c/13307 Reviewed-by: Gabe Black Maintainer: Gabe Black --- src/systemc/tests/config.py | 1 - 1 file changed, 1 deletion(-) (limited to 'src/systemc/tests/config.py') diff --git a/src/systemc/tests/config.py b/src/systemc/tests/config.py index d9ae74994..79a63382b 100755 --- a/src/systemc/tests/config.py +++ b/src/systemc/tests/config.py @@ -59,5 +59,4 @@ if result.code != 0: # generate errors, and as long as their output matches that's still # considered correct. A "real" systemc config should expect sc_main # (if present) not to fail. - print('\n' + result.message) sys.exit(int(result.code)) -- cgit v1.2.3