Revision: 77103
          http://sourceforge.net/p/brlcad/code/77103
Author:   starseeker
Date:     2020-09-11 18:14:56 +0000 (Fri, 11 Sep 2020)
Log Message:
-----------
The 'test -f /dev/null' test is failing when run inside of CTest on linux, 
resulting in an NUL file being created that isn't discleaned.  Use the OSTYPE 
var to check for MSYS sh.exe.

Modified Paths:
--------------
    brlcad/branches/RELEASE/bench/run.sh

Modified: brlcad/branches/RELEASE/bench/run.sh
===================================================================
--- brlcad/branches/RELEASE/bench/run.sh        2020-09-11 16:15:44 UTC (rev 
77102)
+++ brlcad/branches/RELEASE/bench/run.sh        2020-09-11 18:14:56 UTC (rev 
77103)
@@ -69,10 +69,10 @@
 LC_ALL=C
 
 # Windows has a special NUL device instead of /dev/null
-if test -f /dev/null ; then
+if [ "$OSTYPE" == "msys" ] ; then
+    export NUL=NUL
+else
     export NUL=/dev/null
-else
-    export NUL=NUL
 fi
 
 # commands that this script expects

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



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to