diff options
Diffstat (limited to 'source/blender/blenlib/tests')
-rw-r--r-- | source/blender/blenlib/tests/BLI_listbase_test.cc | 4 | ||||
-rw-r--r-- | source/blender/blenlib/tests/BLI_path_util_test.cc | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenlib/tests/BLI_listbase_test.cc b/source/blender/blenlib/tests/BLI_listbase_test.cc index aa2f885e39d..abdd4f90221 100644 --- a/source/blender/blenlib/tests/BLI_listbase_test.cc +++ b/source/blender/blenlib/tests/BLI_listbase_test.cc @@ -222,7 +222,7 @@ static bool testsort_listbase_array_str_cmp(ListBase *lb, char **arr, int arr_nu link_step = (LinkData *)lb->first; for (i = 0; i < arr_num; i++) { - if (strcmp(arr[i], (char *)link_step->data) != 0) { + if (!STREQ(arr[i], (char *)link_step->data)) { return false; } link_step = link_step->next; @@ -241,7 +241,7 @@ static bool testsort_listbase_sort_is_stable(ListBase *lb, bool forward) link_step = (LinkData *)lb->first; while (link_step && link_step->next) { - if (strcmp((const char *)link_step->data, (const char *)link_step->next->data) == 0) { + if (STREQ((const char *)link_step->data, (const char *)link_step->next->data)) { if ((link_step < link_step->next) != forward) { return false; } diff --git a/source/blender/blenlib/tests/BLI_path_util_test.cc b/source/blender/blenlib/tests/BLI_path_util_test.cc index 5ea6524f835..2d415534693 100644 --- a/source/blender/blenlib/tests/BLI_path_util_test.cc +++ b/source/blender/blenlib/tests/BLI_path_util_test.cc @@ -466,7 +466,7 @@ TEST(path_util, PathFrameStrip) #define PATH_EXTENSION_CHECK(input_path, input_ext, expect_ext) \ { \ const bool ret = BLI_path_extension_check(input_path, input_ext); \ - if (strcmp(input_ext, expect_ext) == 0) { \ + if (STREQ(input_ext, expect_ext)) { \ EXPECT_TRUE(ret); \ } \ else { \ |