Skip to content

Commit

Permalink
Make sure that test ENV has at least 1 active device
Browse files Browse the repository at this point in the history
  • Loading branch information
FrogTheFrog committed Apr 20, 2024
1 parent bd71d66 commit ef0ffe3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/unit/platf/windows/test_winapilayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ TEST(LoggingTest, QueryDisplayConfigPathAndModeCount) {

EXPECT_TRUE(active_devices);
EXPECT_TRUE(all_devices);

// This test (and some others) is pointless without any paths. We should always have at least 1 active display device!
EXPECT_TRUE(!active_devices->paths.empty());
EXPECT_TRUE(all_devices->paths.size() >= active_devices->paths.size());
EXPECT_TRUE(all_devices->modes.size() == active_devices->modes.size());
}
Expand Down

0 comments on commit ef0ffe3

Please sign in to comment.