Skip to content

Commit

Permalink
Add #ifdef __APPLE__ check in the test case for absPath with empty input
Browse files Browse the repository at this point in the history
Signed-off-by: Zhilei Ren <[email protected]>
  • Loading branch information
gzfuzz committed Aug 8, 2024
1 parent a98f821 commit 16dfa04
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Filesystem_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -640,5 +640,9 @@ TEST_F(FilesystemTest, separator)
/////////////////////////////////////////////////
TEST_F(FilesystemTest, empty)
{
#ifdef __APPLE__
EXPECT_EQ(common::absPath(""), gz::common::cwd());
#else
EXPECT_EQ(common::absPath(""), "");
#endif
}

0 comments on commit 16dfa04

Please sign in to comment.