tests: add tests for internal utilities
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
		@@ -32,7 +32,7 @@ class CpuFixture {
 | 
			
		||||
    };
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#define TAG "arm execution"
 | 
			
		||||
static constexpr auto TAG = "[arm][execution]";
 | 
			
		||||
 | 
			
		||||
using namespace arm;
 | 
			
		||||
 | 
			
		||||
@@ -1051,5 +1051,3 @@ TEST_CASE_METHOD(CpuFixture, "Data Processing", TAG) {
 | 
			
		||||
        CHECK(cpu.spsr.raw() == cpu.cpsr.raw());
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#undef TAG
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
#include "cpu/arm/instruction.hh"
 | 
			
		||||
#include <catch2/catch_test_macros.hpp>
 | 
			
		||||
 | 
			
		||||
#define TAG "disassembler"
 | 
			
		||||
static constexpr auto TAG = "[arm][disassembly]";
 | 
			
		||||
 | 
			
		||||
using namespace matar;
 | 
			
		||||
using namespace arm;
 | 
			
		||||
@@ -467,5 +467,3 @@ TEST_CASE("Software Interrupt", TAG) {
 | 
			
		||||
    CHECK(instruction.condition == Condition::EQ);
 | 
			
		||||
    CHECK(instruction.disassemble() == "SWIEQ");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#undef TAG
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user