diff --git a/tests/test_SupportedFileSystems.cc b/tests/test_SupportedFileSystems.cc index f08b29b8..8b4d44a6 100644 --- a/tests/test_SupportedFileSystems.cc +++ b/tests/test_SupportedFileSystems.cc @@ -596,7 +596,11 @@ TEST_P(SupportedFileSystemsTest, CreateAndWriteLabel) m_partition.set_filesystem_label("FIRST"); ASSERT_TRUE(m_fs_object->create(m_partition, m_operation_detail)) << m_operation_detail; - // Test writing a label is successful. + // Test clearing the label is successful. + m_partition.set_filesystem_label(""); + ASSERT_TRUE(m_fs_object->write_label(m_partition, m_operation_detail)) << m_operation_detail; + + // Test writing the label is successful. m_partition.set_filesystem_label("SECOND"); ASSERT_TRUE(m_fs_object->write_label(m_partition, m_operation_detail)) << m_operation_detail; }