Revision: 41511
          http://brlcad.svn.sourceforge.net/brlcad/?rev=41511&view=rev
Author:   erikgreenwald
Date:     2010-12-06 16:04:59 +0000 (Mon, 06 Dec 2010)

Log Message:
-----------
Use a temp file to do the pixcmp test instead of /dev/null. Cygwin fakes a /dev 
and does not allow opening /dev/null for reading.

Modified Paths:
--------------
    brlcad/trunk/bench/run.sh

Modified: brlcad/trunk/bench/run.sh
===================================================================
--- brlcad/trunk/bench/run.sh   2010-12-06 15:58:19 UTC (rev 41510)
+++ brlcad/trunk/bench/run.sh   2010-12-06 16:04:59 UTC (rev 41511)
@@ -601,7 +601,13 @@
     $ECHO "ERROR:  RT does not seem to work as expected"
     exit 2
 fi
-$CMP /dev/null /dev/null >/dev/null 2>&1
+
+# create a temporary file named "null", fopen("/dev/null") does not work on
+# windows (using cygwin), so punt.
+> null
+$CMP null null >/dev/null 2>&1
+rm -f null
+
 ret=$?
 if test ! "x${ret}" = "x0" ; then
     $ECHO


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to