From 6579f7272905d1e25b43ef051da6c2180e60ca2b Mon Sep 17 00:00:00 2001 From: bd Date: Tue, 1 Apr 2025 00:49:52 -0400 Subject: Ensure all stages only do work if they are not 'OK' --- tests/controller.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/controller.cc') diff --git a/tests/controller.cc b/tests/controller.cc index de49629..f6d9b25 100644 --- a/tests/controller.cc +++ b/tests/controller.cc @@ -62,19 +62,19 @@ TEST_CASE_METHOD(ControllerPipeFixture, "Add until exec", "[tmp]") this->d->load(p); // dram - i = this->ct->advance(OK); + i = this->ct->advance(WAIT); REQUIRE(i == nullptr); // fetch - i = this->ct->advance(OK); + i = this->ct->advance(WAIT); REQUIRE(i == nullptr); // decode - i = this->ct->advance(OK); + i = this->ct->advance(WAIT); REQUIRE(i == nullptr); // exec - i = this->ct->advance(OK); + i = this->ct->advance(WAIT); REQUIRE(i == nullptr); // done - i = this->ct->advance(OK); + i = this->ct->advance(WAIT); REQUIRE(i != nullptr); CHECK(i->get_time_of(FETCH) == 3); -- cgit v1.2.3