Lines Matching refs:symfile

2128             immutable symfile = deleteme ~ "_slink\0";
2129 scope(exit) if (symfile.exists) symfile.remove();
2131 core.sys.posix.unistd.symlink(system_directory, symfile.ptr);
2133 assert(symfile.isSymlink);
2134 assert(!attrIsSymlink(getAttributes(symfile)));
2135 assert(attrIsSymlink(getLinkAttributes(symfile)));
2137 assert(attrIsDir(getAttributes(symfile)));
2138 assert(!attrIsDir(getLinkAttributes(symfile)));
2140 assert(!attrIsFile(getAttributes(symfile)));
2141 assert(!attrIsFile(getLinkAttributes(symfile)));
2148 immutable symfile = deleteme ~ "_slink\0";
2149 scope(exit) if (symfile.exists) symfile.remove();
2151 core.sys.posix.unistd.symlink(system_file, symfile.ptr);
2153 assert(symfile.isSymlink);
2154 assert(!attrIsSymlink(getAttributes(symfile)));
2155 assert(attrIsSymlink(getLinkAttributes(symfile)));
2157 assert(!attrIsDir(getAttributes(symfile)));
2158 assert(!attrIsDir(getLinkAttributes(symfile)));
2160 assert(attrIsFile(getAttributes(symfile)));
2161 assert(!attrIsFile(getLinkAttributes(symfile)));
2489 immutable symfile = deleteme ~ "_slink\0";
2490 scope(exit) if (symfile.exists) symfile.remove();
2492 symlink(system_directory, symfile);
2494 assert(symfile.exists);
2495 assert(symfile.isSymlink);
2496 assert(!attrIsSymlink(getAttributes(symfile)));
2497 assert(attrIsSymlink(getLinkAttributes(symfile)));
2499 assert(attrIsDir(getAttributes(symfile)));
2500 assert(!attrIsDir(getLinkAttributes(symfile)));
2502 assert(!attrIsFile(getAttributes(symfile)));
2503 assert(!attrIsFile(getLinkAttributes(symfile)));
2510 immutable symfile = deleteme ~ "_slink\0";
2511 scope(exit) if (symfile.exists) symfile.remove();
2513 symlink(system_file, symfile);
2515 assert(symfile.exists);
2516 assert(symfile.isSymlink);
2517 assert(!attrIsSymlink(getAttributes(symfile)));
2518 assert(attrIsSymlink(getLinkAttributes(symfile)));
2520 assert(!attrIsDir(getAttributes(symfile)));
2521 assert(!attrIsDir(getLinkAttributes(symfile)));
2523 assert(attrIsFile(getAttributes(symfile)));
2524 assert(!attrIsFile(getLinkAttributes(symfile)));
2608 immutable symfile = deleteme ~ "_slink\0";
2609 scope(exit) if (symfile.exists) symfile.remove();
2611 symlink(file, symfile);
2612 assert(readLink(symfile) == file, format("Failed file: %s", file));
3329 immutable symfile = deleteme ~ "_slink\0";
3330 scope(exit) if (symfile.exists) symfile.remove();
3332 core.sys.posix.unistd.symlink(system_directory, symfile.ptr);
3335 auto de = DirEntry(symfile);
3341 symfile.remove();
3342 core.sys.posix.unistd.symlink((deleteme ~ "_broken_symlink\0").ptr, symfile.ptr);
3346 DirEntry de = DirEntry(symfile);
3357 assert(symfile.exists);
3358 symfile.remove();