Skip to content

Commit

Permalink
Tests: Only run fCustomSyntaxMac with FC_OS_MACOSX
Browse files Browse the repository at this point in the history
Originally this test file simply defined the appropriate macro, but
since macros leak that can have unexpected side effects on other tests.
It's safer to simply only run that test on the Mac.
  • Loading branch information
chennes committed Dec 23, 2024
1 parent 6aa47a8 commit d71fbfa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/src/App/ProgramOptionsUtilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ TEST(ProgramOptionsUtilitiesTest, fCustomSyntaxLookup)
};
TEST(ProgramOptionsUtilitiesTest, fCustomSyntaxMac)
{
#if defined(FC_OS_MACOSX)
stringPair res {customSyntax("-psn_stuff")};
stringPair exp {"psn", "stuff"};
EXPECT_EQ(res, exp);
#endif
};
TEST(ProgramOptionsUtilitiesTest, fCustomSyntaxWidgetCount)
{
Expand Down

0 comments on commit d71fbfa

Please sign in to comment.