Browse Source

arm_test_common: Make file static variable a member variable of the testing environment

Gets rid of file-static behavior.
nce_cpp
Lioncash 8 years ago
parent
commit
193e23b12f
  1. 2
      src/tests/core/arm/arm_test_common.cpp
  2. 5
      src/tests/core/arm/arm_test_common.h

2
src/tests/core/arm/arm_test_common.cpp

@ -10,8 +10,6 @@
namespace ArmTests {
static Memory::PageTable* page_table = nullptr;
TestEnvironment::TestEnvironment(bool mutable_memory_)
: mutable_memory(mutable_memory_), test_memory(std::make_shared<TestMemory>(this)) {

5
src/tests/core/arm/arm_test_common.h

@ -11,6 +11,10 @@
#include "common/common_types.h"
#include "core/memory_hook.h"
namespace Memory {
struct PageTable;
}
namespace ArmTests {
struct WriteRecord {
@ -81,6 +85,7 @@ private:
bool mutable_memory;
std::shared_ptr<TestMemory> test_memory;
std::vector<WriteRecord> write_records;
Memory::PageTable* page_table = nullptr;
};
} // namespace ArmTests
Loading…
Cancel
Save