add support for utils::guesspath() on macos

This commit is contained in:
Axel Kohlmeyer
2021-09-08 12:09:14 -04:00
parent 22f295ffd8
commit cfa94dfbaf
3 changed files with 14 additions and 2 deletions

View File

@ -722,7 +722,7 @@ TEST(Utils, guesspath)
{
char buf[256];
FILE *fp = fopen("test_guesspath.txt", "w");
#if defined(__linux__)
#if defined(__linux__) || (__APPLE__)
const char *path = utils::guesspath(buf, sizeof(buf), fp);
ASSERT_THAT(path, EndsWith("test_guesspath.txt"));
#else