mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-14 03:58:18 +00:00
15 lines
281 B
C++
15 lines
281 B
C++
|
#include "test.h"
|
||
|
#include <gtest/gtest.h>
|
||
|
|
||
|
#include <base/system.h>
|
||
|
|
||
|
TEST(Filesystem, CreateCloseDelete)
|
||
|
{
|
||
|
CTestInfo Info;
|
||
|
|
||
|
IOHANDLE File = io_open(Info.m_aFilename, IOFLAG_WRITE);
|
||
|
ASSERT_TRUE(File);
|
||
|
EXPECT_FALSE(io_close(File));
|
||
|
EXPECT_FALSE(fs_remove(Info.m_aFilename));
|
||
|
}
|