fix: remove tset files
This commit is contained in:
parent
568ad58079
commit
44b35bb9c4
|
@ -196,7 +196,7 @@ TEST(osFileTests, taosCopyFile) {
|
||||||
retsize = taosReadFromCFile(NULL, 0, 0, NULL);
|
retsize = taosReadFromCFile(NULL, 0, 0, NULL);
|
||||||
EXPECT_EQ(retsize, 0);
|
EXPECT_EQ(retsize, 0);
|
||||||
|
|
||||||
taosRemoveFile(from);
|
taosRemoveFile(from);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(osFileTests, taosCreateFile) {
|
TEST(osFileTests, taosCreateFile) {
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue