summaryrefslogtreecommitdiff
path: root/Source/UnitTests/Common/x64EmitterTest.cpp
diff options
context:
space:
mode:
authoryerejm <github@thelostyerejm.com>2015-05-17 11:48:05 +1000
committeryerejm <github@thelostyerejm.com>2015-05-17 11:48:05 +1000
commite4e1fe5a9c00e8e5865287cd79aa74a6c62b41a8 (patch)
treefc81d9042178777fb319e267d68498bd6be20979 /Source/UnitTests/Common/x64EmitterTest.cpp
parent7e6ec5fa869a9d62699639f6775ccccbd52b3c2a (diff)
Reset faked CPU extension support at test end to ensure test isolation.
Diffstat (limited to 'Source/UnitTests/Common/x64EmitterTest.cpp')
-rw-r--r--Source/UnitTests/Common/x64EmitterTest.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/UnitTests/Common/x64EmitterTest.cpp b/Source/UnitTests/Common/x64EmitterTest.cpp
index 1f7d08f114..8f9ee2f547 100644
--- a/Source/UnitTests/Common/x64EmitterTest.cpp
+++ b/Source/UnitTests/Common/x64EmitterTest.cpp
@@ -101,6 +101,11 @@ protected:
disasm->set_syntax_intel();
}
+ void TearDown() override
+ {
+ cpu_info = CPUInfo();
+ }
+
void ExpectDisassembly(const std::string& expected)
{
std::string disasmed;