Fix own previous commit re testing of BLI_rel_path.

Windows would need its own version of those tests, for now just
disabling them on that platform.
This commit is contained in:
2020-10-26 18:29:54 +01:00
parent 01d3fbc496
commit edf4378c44

View File

@@ -602,15 +602,16 @@ TEST(path_util, PathExtension)
}
/* BLI_path_rel. */
#ifndef _WIN32
#define PATH_REL(abs_path, ref_path, rel_path) \
{ \
char path[FILE_MAX]; \
BLI_strncpy(path, abs_path, sizeof(path)); \
BLI_path_rel(path, ref_path); \
EXPECT_STREQ(rel_path, path); \
} \
void(0)
# define PATH_REL(abs_path, ref_path, rel_path) \
{ \
char path[FILE_MAX]; \
BLI_strncpy(path, abs_path, sizeof(path)); \
BLI_path_rel(path, ref_path); \
EXPECT_STREQ(rel_path, path); \
} \
void(0)
TEST(path_util, PathRelPath)
{
@@ -650,3 +651,7 @@ TEST(path_util, PathRelPath)
PATH_REL(abs_path_in, ref_path_in, abs_path_out);
}
}
# undef PATH_REL
#endif