Commit 888d2c24 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

unittest: Add an unknown mountpoint test

parent 7cb25646
......@@ -344,3 +344,12 @@ TEST_F( DeviceFs, ChangeDevice )
ASSERT_NE( nullptr, f );
ASSERT_EQ( firstRemovableFileId, f->id() );
}
TEST_F( DeviceFs, UnknownMountpoint )
{
// The mock filesystem starts at /a/
// Simply check that we don't crash
ml->discover( "file:///" );
bool discovered = cbMock->waitDiscovery();
ASSERT_TRUE( discovered );
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment