svn commit: r351643 - in head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common: dtraceUtil speculation
Warner Losh
imp at bsdimp.com
Sat Aug 31 23:30:08 UTC 2019
On Sat, Aug 31, 2019 at 5:29 PM Conrad Meyer <cem at freebsd.org> wrote:
> Thanks Li-Wen! Might it be less fragile to have the test fixture
> create a file, if the test(s) will expect one to be present to read?
>
Or just use the realpath $0, which you know has to exist :)
Warner
> On Sat, Aug 31, 2019 at 7:42 AM Li-Wen Hsu <lwhsu at freebsd.org> wrote:
> >
> > Author: lwhsu
> > Date: Sat Aug 31 14:41:58 2019
> > New Revision: 351643
> > URL: https://svnweb.freebsd.org/changeset/base/351643
> >
> > Log:
> > Fix tests use /etc/motd after r350184 by using an always existing file
> >
> > Sponsored by: The FreeBSD Foundation
> >
> > Modified:
> >
> head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/dtraceUtil/tst.DestructWithFunction.d.ksh
> >
> head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/dtraceUtil/tst.ZeroFunctionProbes.d.ksh
> >
> head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/speculation/tst.NoSpecBuffer.exe
> >
> > Modified:
> head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/dtraceUtil/tst.DestructWithFunction.d.ksh
> >
> ==============================================================================
> > ---
> head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/dtraceUtil/tst.DestructWithFunction.d.ksh
> Sat Aug 31 13:24:22 2019 (r351642)
> > +++
> head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/dtraceUtil/tst.DestructWithFunction.d.ksh
> Sat Aug 31 14:41:58 2019 (r351643)
> > @@ -43,7 +43,7 @@ reader()
> > while true
> > do
> > sleep 0.1
> > - cat /etc/motd > /dev/null
> > + cat /COPYRIGHT > /dev/null
> > done
> > }
> >
> >
> > Modified:
> head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/dtraceUtil/tst.ZeroFunctionProbes.d.ksh
> >
> ==============================================================================
> > ---
> head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/dtraceUtil/tst.ZeroFunctionProbes.d.ksh
> Sat Aug 31 13:24:22 2019 (r351642)
> > +++
> head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/dtraceUtil/tst.ZeroFunctionProbes.d.ksh
> Sat Aug 31 14:41:58 2019 (r351643)
> > @@ -44,7 +44,7 @@ reader()
> > while true
> > do
> > sleep 0.1
> > - cat /etc/motd > /dev/null
> > + cat /COPYRIGHT > /dev/null
> > done
> > }
> >
> >
> > Modified:
> head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/speculation/tst.NoSpecBuffer.exe
> >
> ==============================================================================
> > ---
> head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/speculation/tst.NoSpecBuffer.exe
> Sat Aug 31 13:24:22 2019 (r351642)
> > +++
> head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/speculation/tst.NoSpecBuffer.exe
> Sat Aug 31 14:41:58 2019 (r351643)
> > @@ -26,5 +26,5 @@
> > while true
> > do
> > sleep 0.1
> > - cat /etc/motd > /dev/null
> > + cat /COPYRIGHT > /dev/null
> > done
> >
>
>
More information about the svn-src-head
mailing list