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:
parent
ffb220590e
commit
670ee877d9
Notes:
blender-bot
2023-02-14 07:25:46 +01:00
Referenced by issue #77348, Blender LTS: Maintenance Task 2.83
|
@ -635,15 +635,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)
|
||||
{
|
||||
|
@ -683,3 +684,7 @@ TEST(path_util, PathRelPath)
|
|||
PATH_REL(abs_path_in, ref_path_in, abs_path_out);
|
||||
}
|
||||
}
|
||||
|
||||
# undef PATH_REL
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue