Lines Matching +full:de +full:- +full:assert
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2003-2007 Tim Kientzle
34 * wide-character paths with '\\?\' prefix, which has a 32k PATH_MAX
37 * continue to special-case Cygwin 1.5 and earlier).
48 assert(_getcwd(buf, MAX_PATH) != NULL); in compute_loop_max()
53 LOOP_MAX = MAX_PATH - (int)cwdlen - 12 - 4 - 1; in compute_loop_max()
64 assert(getcwd(pbuf, PATH_MAX) != NULL); in compute_loop_max()
70 LOOP_MAX = PATH_MAX - (int)cwdlen - 12 - 4 - 4; in compute_loop_max()
74 /* cygwin-1.7 ends up here, along with "normal" unix */ in compute_loop_max()
75 return 200; /* restore pre-r278 depth */ in compute_loop_max()
100 buff[j--] = '\0'; in compute_filenames()
102 buff[j--] = '0' + (i % 10); in compute_filenames()
104 buff[j--] = '0' + ((i / 10) % 10); in compute_filenames()
106 buff[j--] = '0' + (char)(i / 100); in compute_filenames()
142 assert(filenames[i] != NULL); in create_tree()
217 if (assertIsDir(name1, -1)) { in verify_tree()
232 struct dirent *de; in verify_tree() local
237 if (!assert(d != NULL)) in verify_tree()
239 while ((de = readdir(d)) != NULL) { in verify_tree()
240 char *p = de->d_name; in verify_tree()
246 assert(strlen(p) < limit); in verify_tree()
252 assert(strlen(p) < limit + 1); in verify_tree()
258 assert(0); in verify_tree()
272 /* NOTE: for proper operation on cygwin-1.5 and windows, the in copy_basic()
284 r = systemf("%s cf archive %s -C ../original f d l m s >pack.out 2>pack.err", in copy_basic()
314 /* NOTE: for proper operation on cygwin-1.5 and windows, the in copy_ustar()
326 r = systemf("%s cf archive --format=ustar -C ../original f d l m s >pack.out 2>pack.err", in copy_ustar()
328 failure("Error invoking \"%s cf archive --format=ustar\"", testprog); in copy_ustar()
333 /* Stderr is non-empty, since there are a bunch of files in copy_ustar()
356 /* Test simple "tar -c | tar -x" pipeline copy. */ in DEFINE_TEST()
363 copy_basic(" --format pax", "pax"); in DEFINE_TEST()