Lines Matching refs:ret
13 char* ret; in test_basename() local
22 ret = basename(input); in test_basename()
24 if (ret != NULL) { in test_basename()
27 _input, ret); in test_basename()
39 if (ret == NULL) { in test_basename()
44 else if (strcmp(ret, _expected)) { in test_basename()
46 _input, ret, _expected); in test_basename()
50 _input, ret ); in test_basename()
60 int ret; in test_basename_r() local
62 ret = basename_r(_input, _buff, _bufflen ); in test_basename_r()
63 if (ret != _expected) { in test_basename_r()
66 _input, _bufflen, ret, _expected); in test_basename_r()
70 if (ret == -1) { in test_basename_r()
79 else if ( memcmp( _buff, _expected_content, ret ) ) { in test_basename_r()
93 int ret; in test_dirname_r() local
95 ret = dirname_r(_input, _buff, _bufflen ); in test_dirname_r()
96 if (ret != _expected) { in test_dirname_r()
99 _input, _bufflen, ret, _expected); in test_dirname_r()
103 if (ret == -1) { in test_dirname_r()
112 else if ( memcmp( _buff, _expected_content, ret ) ) { in test_dirname_r()
129 char* ret; in test_dirname() local
138 ret = dirname(input); in test_dirname()
140 if (ret != NULL) { in test_dirname()
143 _input, ret); in test_dirname()
155 if (ret == NULL) { in test_dirname()
160 else if (strcmp(ret, _expected)) { in test_dirname()
162 _input, ret, _expected); in test_dirname()
166 _input, ret ); in test_dirname()