systemc: Make verify.py filter out some error messages.
authorGabe Black <gabeblack@google.com>
Thu, 30 Aug 2018 08:44:26 +0000 (01:44 -0700)
committerGabe Black <gabeblack@google.com>
Wed, 3 Oct 2018 00:23:09 +0000 (00:23 +0000)
Some of the details of these messages would be annoying to match
exactly, and the error messages in gem5 go to simerr which isn't
being checked.

Change-Id: If80b124dd99987e205ccaf81d313d35df4191252
Reviewed-on: https://gem5-review.googlesource.com/c/12449
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>

src/systemc/tests/verify.py

index 57e2c7d2976e7ee740ba265766ffa552670624f1..dc0045970915182c2b38bfe31cc505ebcbd64112 100755 (executable)
@@ -195,6 +195,9 @@ def tagged_filt(tag, num):
     return (r'^\n{}: \({}{}\) .*\n(In file: .*\n)?'
             r'(In process: [\w.]* @ .*\n)?').format(tag, tag[0], num)
 
+def error_filt(num):
+    return tagged_filt('Error', num)
+
 def warning_filt(num):
     return tagged_filt('Warning', num)
 
@@ -217,6 +220,9 @@ class LogChecker(Checker):
         warning_filt(540),
         warning_filt(569),
         warning_filt(571),
+        error_filt(541),
+        error_filt(542),
+        error_filt(543),
         info_filt(804),
     )
     test_filt = merge_filts(