tsfile icon indicating copy to clipboard operation
tsfile copied to clipboard

[CPP]. Open and close TsFile without writing data will meet error code 2.

Open ColinLeeo opened this issue 1 year ago • 0 comments

Test code as below:

        CTsFileWriter writer = ts_writer_open(TSFILE_NAME, &code);
        ASSERT_EQ(code, 0);
        ASSERT_NE(writer, nullptr);
        code = ts_writer_close(writer);
        ASSERT_EQ(access(TSFILE_NAME, F_OK), 0);
        ASSERT_EQ(code, E_OK); // assert failed

ColinLeeo avatar Aug 12 '24 03:08 ColinLeeo