From b6967c8a9190efa4e9128850fa723fe3ea3140f7 Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Sat, 28 Sep 2024 11:14:31 -0500 Subject: Expand directory interface, remove FileStatus for FudStatus. --- test/test_directory.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/test_directory.cpp b/test/test_directory.cpp index 9cec80d..45d0c77 100644 --- a/test/test_directory.cpp +++ b/test/test_directory.cpp @@ -100,9 +100,9 @@ TEST(FudDirectory, Basic) const auto fname = testDirNamePrefix.catenate(fnameBase); ASSERT_TRUE(fname.utf8Valid()); CBinaryFile file{fname, CFileMode::ReadWriteTruncate}; - ASSERT_EQ(file.open(), FileStatus::Success); + ASSERT_EQ(file.open(), FudStatus::Success); Array data{"test"}; - WriteResult expected{data.size(), FileStatus::Success}; + WriteResult expected{data.size(), FudStatus::Success}; auto writeResult = file.write(data); ASSERT_EQ(writeResult.bytesWritten, expected.bytesWritten); ASSERT_EQ(writeResult.status, expected.status); @@ -134,7 +134,6 @@ TEST(FudDirectory, Basic) [&dirEntry](const DirectoryEntry& entry) { return entry.name.compare(dirEntry.name) && entry.entryType == dirEntry.entryType; }); EXPECT_NE(expected, nullptr); EXPECT_NE(expected, expectedFiles.end()); - printf("%s %u\n", dirEntry.name.c_str(), static_cast(dirEntry.entryType)); } auto finalDirEntryResult = directory.getNextEntry(); -- cgit v1.2.3