@@ -56,8 +56,8 @@ static int GIT_FORMAT_PRINTF(2, 3) cl_setenv_printf(const char *name, const char
5656static void env_pass_ (const char * path , const char * file , int line )
5757{
5858 git_repository * repo ;
59- cl_git_pass_ (git_repository_open_ext (NULL , path , GIT_REPOSITORY_OPEN_FROM_ENV , NULL ), file , line );
60- cl_git_pass_ (git_repository_open_ext (& repo , path , GIT_REPOSITORY_OPEN_FROM_ENV , NULL ), file , line );
59+ cl_git_expect (git_repository_open_ext (NULL , path , GIT_REPOSITORY_OPEN_FROM_ENV , NULL ), 0 , file , line );
60+ cl_git_expect (git_repository_open_ext (& repo , path , GIT_REPOSITORY_OPEN_FROM_ENV , NULL ), 0 , file , line );
6161 cl_assert_at_line (git__suffixcmp (git_repository_path (repo ), "attr/.git/" ) == 0 , file , line );
6262 cl_assert_at_line (git__suffixcmp (git_repository_workdir (repo ), "attr/" ) == 0 , file , line );
6363 cl_assert_at_line (!git_repository_is_bare (repo ), file , line );
@@ -98,24 +98,24 @@ static void env_check_objects_(bool a, bool t, bool p, const char *file, int lin
9898 cl_git_pass (git_oid_fromstr (& oid_a , "45141a79a77842c59a63229403220a4e4be74e3d" ));
9999 cl_git_pass (git_oid_fromstr (& oid_t , "1385f264afb75a56a5bec74243be9b367ba4ca08" ));
100100 cl_git_pass (git_oid_fromstr (& oid_p , "0df1a5865c8abfc09f1f2182e6a31be550e99f07" ));
101- cl_git_pass_ (git_repository_open_ext (& repo , "attr" , GIT_REPOSITORY_OPEN_FROM_ENV , NULL ), file , line );
101+ cl_git_expect (git_repository_open_ext (& repo , "attr" , GIT_REPOSITORY_OPEN_FROM_ENV , NULL ), 0 , file , line );
102102
103103 if (a ) {
104- cl_git_pass_ (git_object_lookup (& object , repo , & oid_a , GIT_OBJ_BLOB ), file , line );
104+ cl_git_expect (git_object_lookup (& object , repo , & oid_a , GIT_OBJ_BLOB ), 0 , file , line );
105105 git_object_free (object );
106106 } else {
107107 cl_git_fail_at_line (git_object_lookup (& object , repo , & oid_a , GIT_OBJ_BLOB ), file , line );
108108 }
109109
110110 if (t ) {
111- cl_git_pass_ (git_object_lookup (& object , repo , & oid_t , GIT_OBJ_BLOB ), file , line );
111+ cl_git_expect (git_object_lookup (& object , repo , & oid_t , GIT_OBJ_BLOB ), 0 , file , line );
112112 git_object_free (object );
113113 } else {
114114 cl_git_fail_at_line (git_object_lookup (& object , repo , & oid_t , GIT_OBJ_BLOB ), file , line );
115115 }
116116
117117 if (p ) {
118- cl_git_pass_ (git_object_lookup (& object , repo , & oid_p , GIT_OBJ_COMMIT ), file , line );
118+ cl_git_expect (git_object_lookup (& object , repo , & oid_p , GIT_OBJ_COMMIT ), 0 , file , line );
119119 git_object_free (object );
120120 } else {
121121 cl_git_fail_at_line (git_object_lookup (& object , repo , & oid_p , GIT_OBJ_COMMIT ), file , line );
0 commit comments