fix: remove tset files

This commit is contained in:
Simon Guan 2025-03-03 10:40:16 +08:00
parent 568ad58079
commit 44b35bb9c4
2 changed files with 4 additions and 2 deletions

View File

@ -389,7 +389,7 @@ TEST(osTest, osFile) {
(void)taosThreadJoin(thread2, NULL); (void)taosThreadJoin(thread2, NULL);
taosThreadClear(&thread2); taosThreadClear(&thread2);
// int ret = taosRemoveFile(fname); taosRemoveFile(fname);
// ASSERT_EQ(ret, 0); // ASSERT_EQ(ret, 0);
// printf("remove file success"); // printf("remove file success");
} }
@ -651,6 +651,8 @@ TEST(osTest, osFilePerformance) {
taosMemoryFree(writeBuffer); taosMemoryFree(writeBuffer);
taosMemoryFree(readBuffer); taosMemoryFree(readBuffer);
taosRemoveFile(fname);
(void)printf("Test Write file %d times, cost: %" PRId64 "us\n", TESTTIMES, WriteFileCost); (void)printf("Test Write file %d times, cost: %" PRId64 "us\n", TESTTIMES, WriteFileCost);
(void)printf("Test Read file %d times, cost: %" PRId64 "us\n", TESTTIMES, ReadFileCost); (void)printf("Test Read file %d times, cost: %" PRId64 "us\n", TESTTIMES, ReadFileCost);
(void)printf("Test OpenForWrite & Close file %d times, cost: %" PRId64 "us\n", TESTTIMES, OpenForWriteCloseFileCost); (void)printf("Test OpenForWrite & Close file %d times, cost: %" PRId64 "us\n", TESTTIMES, OpenForWriteCloseFileCost);