From 004913b602dcb538a496989dba7be4bdb93699d9 Mon Sep 17 00:00:00 2001 From: DerelictDrone Date: Thu, 16 Nov 2023 02:22:37 -0600 Subject: [PATCH] Don't append a VM to your VM + Init VM before test --- lua/wire/zvm/zvm_tests.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lua/wire/zvm/zvm_tests.lua b/lua/wire/zvm/zvm_tests.lua index 2ecb5d7..fade091 100644 --- a/lua/wire/zvm/zvm_tests.lua +++ b/lua/wire/zvm/zvm_tests.lua @@ -106,7 +106,7 @@ end function ZVMTestSuite.RunNextTest() local curVM = CPULib.VirtualMachine() - curVM.Frequency = 2000 + ZVMTestSuite.Initialize(curVM) print("Running "..ZVMTestSuite.TestQueue[#ZVMTestSuite.TestQueue]) ZVMTestSuite.AddVirtualFunctions(curVM) include(testDirectory..'/'..ZVMTestSuite.TestQueue[#ZVMTestSuite.TestQueue]) @@ -306,7 +306,6 @@ function ZVMTestSuite.Initialize(VM,Membus,IOBus) VM.VMStopped = false -- whether the VM has halted itself (e.g. by running off the end of the program) VM.Frequency = 2000 -- Create virtual machine - VM.VM = CPULib.VirtualMachine() VM.SerialNo = CPULib.GenerateSN("CPU") VM:Reset()