[Bf-blender-cvs] [bc0b5d611c] master: Cleanup: minor edits to path test
Campbell Barton
noreply at git.blender.org
Fri Mar 24 07:48:27 CET 2017
Commit: bc0b5d611c8bac1923f06dbcf9945e97c223b7c2
Author: Campbell Barton
Date: Fri Mar 24 17:48:22 2017 +1100
Branches: master
https://developer.blender.org/rBbc0b5d611c8bac1923f06dbcf9945e97c223b7c2
Cleanup: minor edits to path test
No need for redundant ID's and correct arg order
===================================================================
M tests/gtests/blenlib/BLI_path_util_test.cc
===================================================================
diff --git a/tests/gtests/blenlib/BLI_path_util_test.cc b/tests/gtests/blenlib/BLI_path_util_test.cc
index 4c45bfd675..ef469da50b 100644
--- a/tests/gtests/blenlib/BLI_path_util_test.cc
+++ b/tests/gtests/blenlib/BLI_path_util_test.cc
@@ -58,7 +58,7 @@ char *zLhm65070058860608_br_find_exe(const char *default_exe)
/* BLI_cleanup_path */
#ifndef _WIN32
-TEST(path_util, PathUtilClean)
+TEST(path_util, Clean)
{
/* "/./" -> "/" */
{
@@ -128,7 +128,7 @@ TEST(path_util, PathUtilClean)
EXPECT_EQ(ret, true); \
EXPECT_EQ(strlen(expect), len_output); \
path[index_output + len_output] = '\0'; \
- EXPECT_STREQ(expect, &path[index_output]); \
+ EXPECT_STREQ(&path[index_output], expect); \
} \
}((void)0)
@@ -345,7 +345,7 @@ TEST(path_util, JoinComplex)
#undef JOIN
/* BLI_path_frame */
-TEST(path_util, PathUtilFrame)
+TEST(path_util, Frame)
{
bool ret;
@@ -408,7 +408,7 @@ TEST(path_util, PathUtilFrame)
}
/* BLI_split_dirfile */
-TEST(path_util, PathUtilSplitDirfile)
+TEST(path_util, SplitDirfile)
{
{
const char *path = "";
More information about the Bf-blender-cvs
mailing list