and add expected to TestAccumulatorBase
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 22 Sep 2021 20:16:44 +0000 (21:16 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 22 Sep 2021 20:16:44 +0000 (21:16 +0100)
src/openpower/test/common.py

index 1bfdf6ddfb3fc6d4106b35e80bb87928d0d282c3..e464a1901fb315daddea07668a3efadbb3642d33 100644 (file)
@@ -102,14 +102,16 @@ class TestAccumulatorBase:
     def add_case(self, prog, initial_regs=None, initial_sprs=None,
                  initial_cr=0, initial_msr=0,
                  initial_mem=None,
-                 initial_svstate=0):
+                 initial_svstate=0,
+                 expected=None):
 
         test_name = inspect.stack()[1][3]  # name of caller of this function
         tc = TestCase(prog, test_name,
                       regs=initial_regs, sprs=initial_sprs, cr=initial_cr,
                       msr=initial_msr,
                       mem=initial_mem,
-                      svstate=initial_svstate)
+                      svstate=initial_svstate,
+                      expected=expected)
 
         self.test_data.append(tc)