Home | History | Annotate | Download | only in common

Lines Matching defs:buff

65                 "KO: basename_r(\"%s\", <buff>, %d) returned %d (expected %d)\n",
73 "KO: basename_r(\"%s\", <buff>, %d) returned -1 with errno=%d (expected %d)\n",
81 "KO: basename_r(\"%s\", <buff>, %d) returned \"%s\", expected \"%s\"\n",
86 printf("OK: basename_r(\"%s\", <buff>, %d) returned \"%s\"\n",
98 "KO: dirname_r(\"%s\", <buff>, %d) returned %d (expected %d)\n",
106 "KO: dirname_r(\"%s\", <buff>, %d) returned -1 with errno=%d (expected %d)\n",
114 "KO: dirname_r(\"%s\", <buff>, %d) returned \"%s\", expected \"%s\"\n",
119 printf("OK: dirname_r(\"%s\", <buff>, %d) returned \"%s\"\n",
176 char buff[256];
188 test_basename_r( "", ".", -1, buff, 0, ERANGE );
189 test_basename_r( "", ".", -1, buff, 1, ERANGE );
190 test_basename_r( "", ".", 1, buff, 2, 0 );
191 test_basename_r( "", ".", 1, buff, sizeof(buff), 0 );
192 test_basename_r( "/usr/lib", "lib", 3, buff, sizeof(buff), 0 );
193 test_basename_r( "/usr/", "usr", 3, buff, sizeof(buff), 0 );
194 test_basename_r( "usr", "usr", 3, buff, sizeof(buff), 0 );
195 test_basename_r( "/", "/", 1, buff, sizeof(buff), 0 );
196 test_basename_r( ".", ".", 1, buff, sizeof(buff), 0 );
197 test_basename_r( "..", "..", 2, buff, sizeof(buff), 0 );
209 test_dirname_r( "", ".", -1, buff, 0, ERANGE );
210 test_dirname_r( "", ".", -1, buff, 1, ERANGE );
211 test_dirname_r( "", ".", 1, buff, 2, 0 );
212 test_dirname_r( "/usr/lib", "/usr", 4, buff, sizeof(buff), 0 );
213 test_dirname_r( "/usr/", "/", 1, buff, sizeof(buff), 0 );
214 test_dirname_r( "usr", ".", 1, buff, sizeof(buff), 0 );
215 test_dirname_r( ".", ".", 1, buff, sizeof(buff), 0 );
216 test_dirname_r( "..", ".", 1, buff, sizeof(buff), 0 );