Skip to content

Commit 0108ee1

Browse files
committed
test: keep ELF parser fixtures on Linux
1 parent 04a348e commit 0108ee1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/unit/test_elf_runtime.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,8 @@ TEST(RuntimePayload, MissingOrMalformedBindingIsAnError) {
197197
}
198198

199199
TEST(ElfRuntime, ParsesProgramDynamicAndGnuVersionTablesInternally) {
200+
if constexpr (!mcpp::platform::is_linux)
201+
GTEST_SKIP() << "ELF table inspection is exercised on native Linux";
200202
Tmp t;
201203
auto parsed = elf::inspect_elf_runtime(write_elf_fixture(t.path / "fixture"));
202204
ASSERT_TRUE(parsed.has_value()) << parsed.error();
@@ -212,6 +214,8 @@ TEST(ElfRuntime, ParsesProgramDynamicAndGnuVersionTablesInternally) {
212214
}
213215

214216
TEST(ElfRuntime, RejectsUnsupportedOrTruncatedElfWithoutGuessing) {
217+
if constexpr (!mcpp::platform::is_linux)
218+
GTEST_SKIP() << "ELF table inspection is exercised on native Linux";
215219
Tmp t;
216220
std::ofstream(t.path / "text") << "not an ELF";
217221
auto text = elf::inspect_elf_runtime(t.path / "text");

0 commit comments

Comments
 (0)