Changeset 18781 for trunk/base/tests


Ignore:
Timestamp:
Jul 28, 2006, 10:11:10 AM (14 years ago)
Author:
pguyot (Paul Guyot)
Message:

darwintrace now reports creation of directories outside the sandbox.
It works with rb-rubygems. Cf:
http://bugzilla.opendarwin.org/show_bug.cgi?id=5491

Location:
trunk/base/tests/trace
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/tests/trace/Makefile

    r18721 r18781  
    1010        @PORTSRC=$(PORTSRC) $(bindir)/port clean > /dev/null
    1111        @touch delete-trace
     12        @rm -f create-trace
     13        @rm -rf mkdir-trace
     14        @rm -f /tmp/hello-trace
    1215        @PORTSRC=$(PORTSRC) $(bindir)/port -t test > output 2>&1 || (cat output; exit 1)
    1316        @rm -f delete-trace
     17        @rm -f create-trace
     18        @rm -rf mkdir-trace
     19        @rm -f /tmp/hello-trace
    1420        @sed -e "s|${PWD}|PWD|g" < output > output.sed
    1521        @diff output.sed master 2>&1 | tee difference
  • trunk/base/tests/trace/Portfile

    r18728 r18781  
    1 # $Id: Portfile,v 1.4 2006/07/25 08:51:57 pguyot Exp $
     1# $Id: Portfile,v 1.5 2006/07/28 10:11:10 pguyot Exp $
    22
    33PortSystem 1.0
     
    2020
    2121test { 
    22         catch {system "rm -f create-trace && touch create-trace && rm create-trace"}
     22        catch {system "touch create-trace"}
    2323        catch {system "rm delete-trace"}
    24         catch {system "rm -f /tmp/hello-trace && touch /tmp/hello-trace && rm /tmp/hello-trace"}
     24        system "touch /tmp/hello-trace"
     25        system "rm /tmp/hello-trace"
     26        catch {system "mkdir mkdir-trace"}
     27        system "mkdir -p /usr/bin"
    2528}
  • trunk/base/tests/trace/master

    r18721 r18781  
    55--->  Building trace with target all
    66--->  Testing trace
    7 Warning: A file creation/deletion/modification was attempted outside sandbox: PWD/create-trace
    8 Warning: A file creation/deletion/modification was attempted outside sandbox: PWD/delete-trace
     7Warning: A creation/deletion/modification was attempted outside sandbox: PWD/create-trace
     8Warning: A creation/deletion/modification was attempted outside sandbox: PWD/delete-trace
     9Warning: A creation/deletion/modification was attempted outside sandbox: PWD/mkdir-trace
Note: See TracChangeset for help on using the changeset viewer.