support utils::guesspath() also on Windows

This commit is contained in:
Axel Kohlmeyer
2021-09-08 18:17:14 -04:00
parent b87a48e40b
commit 9cdb83a24d
3 changed files with 21 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__) || (__APPLE__)
#if defined(__linux__) || defined(__APPLE__) || defined(_WIN32)
const char *path = utils::guesspath(buf, sizeof(buf), fp);
ASSERT_THAT(path, EndsWith("test_guesspath.txt"));
#else