[Libre-soc-bugs] [Bug 441] Avoid unit tests that depend on other unit tests being run first

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Sun Jul 26 12:06:20 BST 2020


https://bugs.libre-soc.org/show_bug.cgi?id=441

--- Comment #5 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
ah, oh dear.  the accumulator system needs a means and method of detecting
"skip".  sigh.


    # TODO XXX whoops...
    #@unittest.skip("spr does not have TRAP in it. has to be done another way")
    def _skip_case_3_mtspr_priv(self):
        lst = ["mtspr 26, 1",  # SRR0
               "mtspr 27, 2",  # SRR1
               "mtspr 1, 3",  # XER
               "mtspr 9, 4", ]  # CTR
        initial_regs = [0] * 32
        initial_regs[1] = 0x129518230011feed
        initial_regs[2] = 0x123518230011feed
        initial_regs[3] = 0xe00c0000
        initial_regs[4] = 0x1010101010101010
        initial_sprs = {'SRR0': 0x12345678, 'SRR1': 0x5678, 'LR': 0x1234,
                        'XER': 0x0}
        msr = 1 << MSR.PR
        self.add_case(Program(lst, bigendian),
                             initial_regs, initial_sprs, initial_msr=msr)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list