[118603] trunk/base/tests/test/trace/test.tcl
cal at macports.org
cal at macports.org
Sat Apr 5 13:10:49 PDT 2014
Revision: 118603
https://trac.macports.org/changeset/118603
Author: cal at macports.org
Date: 2014-04-05 13:10:48 -0700 (Sat, 05 Apr 2014)
Log Message:
-----------
base: tracemode test: don't attempt to chown dir if not root
Modified Paths:
--------------
trunk/base/tests/test/trace/test.tcl
Modified: trunk/base/tests/test/trace/test.tcl
===================================================================
--- trunk/base/tests/test/trace/test.tcl 2014-04-05 19:40:01 UTC (rev 118602)
+++ trunk/base/tests/test/trace/test.tcl 2014-04-05 20:10:48 UTC (rev 118603)
@@ -23,14 +23,13 @@
port_index
port_clean $path
-
- makeDirectory ../tracetesttmp
- file attributes ../tracetesttmp -owner $user
-
file delete -force /tmp/hello-trace
file delete -force /tmp/link-trace2
file link -symbolic /tmp/link-trace2 /usr/include/unistd.h
+
+ makeDirectory ../tracetesttmp
if {[getuid] == 0} {
+ file attributes ../tracetesttmp -owner $user
exec chown -h $user /tmp/link-trace2
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140405/a1e1fbbb/attachment.html>
More information about the macports-changes
mailing list