[125585] trunk/base/tests/test

jmr at macports.org jmr at macports.org
Mon Sep 22 00:38:57 PDT 2014


Revision: 125585
          https://trac.macports.org/changeset/125585
Author:   jmr at macports.org
Date:     2014-09-22 00:38:57 -0700 (Mon, 22 Sep 2014)
Log Message:
-----------
skip svn-and-patchsites test on systems that don't have svn

Modified Paths:
--------------
    trunk/base/tests/test/library.tcl.in
    trunk/base/tests/test/svn-and-patchsites/test.tcl

Modified: trunk/base/tests/test/library.tcl.in
===================================================================
--- trunk/base/tests/test/library.tcl.in	2014-09-22 07:10:07 UTC (rev 125584)
+++ trunk/base/tests/test/library.tcl.in	2014-09-22 07:38:57 UTC (rev 125585)
@@ -9,6 +9,9 @@
 # constraint indicating whether the platform supports trace mode
 ::tcltest::testConstraint tracemode_support [expr {@TRACEMODE_SUPPORT@ != 0}]
 
+# constraint for tests that use svn
+::tcltest::testConstraint has_svn [expr {"@SVN@" ne ""}]
+
 # Set of procs used for testing.
 
 # Sets $bindir variable from autoconf

Modified: trunk/base/tests/test/svn-and-patchsites/test.tcl
===================================================================
--- trunk/base/tests/test/svn-and-patchsites/test.tcl	2014-09-22 07:10:07 UTC (rev 125584)
+++ trunk/base/tests/test/svn-and-patchsites/test.tcl	2014-09-22 07:38:57 UTC (rev 125585)
@@ -20,6 +20,8 @@
 
 test svn-patchsites {
     Regression test for svn-and-patchsites.
+} -constraints {
+    has_svn
 } -body {
     svn-patch
 } -result "No error found."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140922/21f2e342/attachment.html>


More information about the macports-changes mailing list