-cf95639ffd9ed6f3b9d10d98461b2fbd31615757
+428460ddd8087fa28815e613ff04facb51108a7b
The first line of this file holds the git revision number of the last
merge done from the dlang/phobos repository.
else version (RISCV32) enum growDownwards = Yes.growDownwards;
else version (RISCV64) enum growDownwards = Yes.growDownwards;
else version (SPARC) enum growDownwards = Yes.growDownwards;
+ else version (SPARC64) enum growDownwards = Yes.growDownwards;
else version (SystemZ) enum growDownwards = Yes.growDownwards;
else static assert(0, "Dunno how the stack grows on this architecture.");
// can't run in directory if user does not have search permission on this directory
version (Posix)
{
- import core.sys.posix.sys.stat : S_IRUSR;
- auto directoryNoSearch = uniqueTempPath();
- mkdir(directoryNoSearch);
- scope(exit) rmdirRecurse(directoryNoSearch);
- setAttributes(directoryNoSearch, S_IRUSR);
- assertThrown!ProcessException(spawnProcess(prog.path, null, Config.none, directoryNoSearch));
- assertThrown!ProcessException(spawnProcess(prog.path, null, Config.detached, directoryNoSearch));
+ if (core.sys.posix.unistd.getuid() != 0)
+ {
+ import core.sys.posix.sys.stat : S_IRUSR;
+ auto directoryNoSearch = uniqueTempPath();
+ mkdir(directoryNoSearch);
+ scope(exit) rmdirRecurse(directoryNoSearch);
+ setAttributes(directoryNoSearch, S_IRUSR);
+ assertThrown!ProcessException(spawnProcess(prog.path, null, Config.none, directoryNoSearch));
+ assertThrown!ProcessException(spawnProcess(prog.path, null, Config.detached, directoryNoSearch));
+ }
}
}