imgui-frontend-engineer: gate ROM tests on availability
This commit is contained in:
@@ -346,7 +346,16 @@ class TestRomManager {
|
|||||||
|
|
||||||
class TestRomManager::BoundRomTest : public ::testing::Test {
|
class TestRomManager::BoundRomTest : public ::testing::Test {
|
||||||
protected:
|
protected:
|
||||||
void SetUp() override { rom_instance_ = std::make_unique<Rom>(); }
|
void SetUp() override {
|
||||||
|
std::string test_name = "BoundRomTest";
|
||||||
|
if (const auto* info =
|
||||||
|
::testing::UnitTest::GetInstance()->current_test_info()) {
|
||||||
|
test_name = absl::StrFormat("%s.%s", info->test_suite_name(),
|
||||||
|
info->name());
|
||||||
|
}
|
||||||
|
TestRomManager::SkipIfRomMissing(RomRole::kVanilla, test_name);
|
||||||
|
rom_instance_ = std::make_unique<Rom>();
|
||||||
|
}
|
||||||
|
|
||||||
void TearDown() override {
|
void TearDown() override {
|
||||||
rom_instance_.reset();
|
rom_instance_.reset();
|
||||||
|
|||||||
Reference in New Issue
Block a user