From 4cd45353ad588fc251fa89cdae94513b3df22753 Mon Sep 17 00:00:00 2001 From: Michael Nolan Date: Wed, 20 May 2020 15:47:08 -0400 Subject: [PATCH] Make test for bpermd exercise the module a bit more --- src/soc/fu/logical/test/test_pipe_caller.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/soc/fu/logical/test/test_pipe_caller.py b/src/soc/fu/logical/test/test_pipe_caller.py index b3b46408..4a2c09f0 100644 --- a/src/soc/fu/logical/test/test_pipe_caller.py +++ b/src/soc/fu/logical/test/test_pipe_caller.py @@ -174,10 +174,11 @@ class LogicalTestCase(FHDLTestCase): def test_bpermd(self): lst = ["bpermd 3, 1, 2"] - initial_regs = [0] * 32 - initial_regs[1] = 0xdeadbeefcafec0de - initial_regs[2] = 0xd0adb0000afec1de - self.run_tst_program(Program(lst), initial_regs) + for i in range(20): + initial_regs = [0] * 32 + initial_regs[1] = 1<