Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions test/file_format_t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1673,7 +1673,6 @@ void FileFormatTest::ocdAreaSymbolTest_data()
{
QTest::addColumn<int>("format_version");

#ifndef MAPPER_BIG_ENDIAN
static struct { int version; const char* id; } const tests[] = {
{ 8, "OCD8" },
{ 9, "OCD9" },
Expand All @@ -1685,7 +1684,6 @@ void FileFormatTest::ocdAreaSymbolTest_data()
{
QTest::newRow(t.id) << t.version;
}
#endif
}

void FileFormatTest::ocdAreaSymbolTest()
Expand All @@ -1694,6 +1692,10 @@ void FileFormatTest::ocdAreaSymbolTest()

auto* format_id = QTest::currentDataTag();
const auto* format = FileFormats.findFormat(format_id);
#ifdef MAPPER_BIG_ENDIAN
if (QByteArray(format_id).startsWith("OCD"))
QEXPECT_FAIL("", "OCD format not support on big endian systems", Abort);
#endif
QVERIFY(format);

static const auto filepath = QString::fromLatin1("data:rotated-pattern.omap");
Expand Down Expand Up @@ -1795,7 +1797,6 @@ void FileFormatTest::ocdTextSymbolTest_data()
{
QTest::addColumn<int>("format_version");

#ifndef MAPPER_BIG_ENDIAN
static struct { int version; const char* id; } const tests[] = {
{ 8, "OCD8" },
{ 9, "OCD9" },
Expand All @@ -1807,7 +1808,6 @@ void FileFormatTest::ocdTextSymbolTest_data()
{
QTest::newRow(t.id) << t.version;
}
#endif
}

void FileFormatTest::ocdTextSymbolTest()
Expand All @@ -1816,6 +1816,10 @@ void FileFormatTest::ocdTextSymbolTest()

auto* format_id = QTest::currentDataTag();
const auto* format = FileFormats.findFormat(format_id);
#ifdef MAPPER_BIG_ENDIAN
if (QByteArray(format_id).startsWith("OCD"))
QEXPECT_FAIL("", "OCD format not support on big endian systems", Abort);
#endif
QVERIFY(format);

static const auto filepath = QString::fromLatin1("data:text-symbol.omap");
Expand Down