use the portable platform::unlink() instead of unlink()
This commit is contained in:
@ -59,8 +59,8 @@ protected:
|
||||
void TearDown() override
|
||||
{
|
||||
LAMMPSTest::TearDown();
|
||||
unlink("test_variable.file");
|
||||
unlink("test_variable.atomfile");
|
||||
platform::unlink("test_variable.file");
|
||||
platform::unlink("test_variable.atomfile");
|
||||
}
|
||||
|
||||
void atomic_system()
|
||||
@ -165,7 +165,7 @@ TEST_F(VariableTest, CreateDelete)
|
||||
fputs(" ", fp);
|
||||
fclose(fp);
|
||||
ASSERT_THAT(variable->retrieve("file"), StrEq("1"));
|
||||
unlink("MYFILE");
|
||||
platform::unlink("MYFILE");
|
||||
ASSERT_THAT(variable->retrieve("file"), StrEq("0"));
|
||||
|
||||
BEGIN_HIDE_OUTPUT();
|
||||
|
||||
Reference in New Issue
Block a user