File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,17 +51,17 @@ test_searchdirs(void **state)
5151 /* correct path */
5252 assert_int_equal (LY_SUCCESS , ly_ctx_set_searchdir (UTEST_LYCTX , path1 ));
5353 assert_int_equal (2 , UTEST_LYCTX -> search_paths .count );
54- assert_string_equal (path1 , UTEST_LYCTX -> search_paths .objs [0 ]);
54+ assert_string_equal (path1 , UTEST_LYCTX -> search_paths .objs [1 ]);
5555
5656 /* duplicated paths */
5757 assert_int_equal (LY_EEXIST , ly_ctx_set_searchdir (UTEST_LYCTX , path1 ));
5858 assert_int_equal (2 , UTEST_LYCTX -> search_paths .count );
59- assert_string_equal (path1 , UTEST_LYCTX -> search_paths .objs [0 ]);
59+ assert_string_equal (path1 , UTEST_LYCTX -> search_paths .objs [1 ]);
6060
6161 /* another path */
6262 assert_int_equal (LY_SUCCESS , ly_ctx_set_searchdir (UTEST_LYCTX , path2 ));
6363 assert_int_equal (3 , UTEST_LYCTX -> search_paths .count );
64- assert_string_equal (path2 , UTEST_LYCTX -> search_paths .objs [1 ]);
64+ assert_string_equal (path2 , UTEST_LYCTX -> search_paths .objs [2 ]);
6565
6666 /* get searchpaths */
6767 list = ly_ctx_get_searchdirs (UTEST_LYCTX );
You can’t perform that action at this time.
0 commit comments