diff --git a/src/Magnum/Audio/Test/ContextALTest.cpp b/src/Magnum/Audio/Test/ContextALTest.cpp index c2845f2c7..b6afcddad 100644 --- a/src/Magnum/Audio/Test/ContextALTest.cpp +++ b/src/Magnum/Audio/Test/ContextALTest.cpp @@ -40,6 +40,8 @@ namespace Magnum { namespace Audio { namespace Test { namespace { struct ContextALTest: TestSuite::Tester { explicit ContextALTest(); + void deviceSpecifierStrings(); + void constructDefault(); void constructConfiguration(); void constructDeviceNotFound(); @@ -66,7 +68,9 @@ ContextALTest::ContextALTest(): TestSuite::Tester{TestSuite::Tester::TesterConfiguration{} .setSkippedArgumentPrefixes({"magnum"})} { - addTests({&ContextALTest::constructDefault, + addTests({&ContextALTest::deviceSpecifierStrings, + + &ContextALTest::constructDefault, &ContextALTest::constructConfiguration, &ContextALTest::constructDeviceNotFound, &ContextALTest::constructMove}); @@ -81,6 +85,12 @@ ContextALTest::ContextALTest(): &ContextALTest::isExtensionDisabled}); } +void ContextALTest::deviceSpecifierStrings() { + /* Just verify that it produces something reasonable without crashing or + entering an infinite loop */ + CORRADE_VERIFY(!Context::deviceSpecifierStrings().empty()); +} + void ContextALTest::constructDefault() { CORRADE_VERIFY(!Context::hasCurrent());