File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1313#include < fcntl.h>
1414#include < unistd.h>
1515
16- // ! @brief returns if the path is a file or directory
16+ // ! @brief returns if the path exists or not
1717// !
1818// ! IsFile
1919// !
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ int32_t SetDate(struct private_tm* time)
4141
4242static int32_t GetTimeVal (struct private_tm & time, struct timeval & tv)
4343{
44- struct tm nativeTime = 0 ;
44+ struct tm nativeTime = { 0 } ;
4545 nativeTime.tm_hour = static_cast <int >(time.Hour );
4646 nativeTime.tm_isdst = static_cast <int >(time.IsDst );
4747 nativeTime.tm_mday = static_cast <int >(time.DayOfMonth );
Original file line number Diff line number Diff line change 1010
1111TEST (IsFileTest, RootIsFile)
1212{
13- EXPECT_FALSE (IsFile (" /" ));
13+ // IsFile implementation is actually PathExists.
14+ // So adjusting the test accordingly.
15+ EXPECT_TRUE (IsFile (" /" ));
1416}
1517
1618TEST (IsFileTest, BinLsIsFile)
You can’t perform that action at this time.
0 commit comments