Revision: 76892
          http://sourceforge.net/p/brlcad/code/76892
Author:   starseeker
Date:     2020-08-22 16:14:01 +0000 (Sat, 22 Aug 2020)
Log Message:
-----------
IIF we're doing one process at a time, check for -? files

Modified Paths:
--------------
    brlcad/trunk/regress/usage.sh

Modified: brlcad/trunk/regress/usage.sh
===================================================================
--- brlcad/trunk/regress/usage.sh       2020-08-22 16:03:27 UTC (rev 76891)
+++ brlcad/trunk/regress/usage.sh       2020-08-22 16:14:01 UTC (rev 76892)
@@ -107,6 +107,17 @@
        lines=0
     fi
 
+    # This is only feasible if we're in single-process-at-a-time mode, but if
+    # we are see if the execution of the command put out a -? file.  If it
+    # did, that means it improperly handled the supplied options.
+    if test $NPSW -eq 1 ; then
+       QFILE=`pwd`/-?
+       if test -f "$QFILE"; then
+           log "ERROR: command $cmd created a -? file"
+           rm -f $QFILE
+       fi
+    fi
+
     printf "  %-30s lines:%3d  maxline:%3d\n" "$cmd ..." "$lines" "$length"
 
     if test "x`echo $usage | grep -i usage`" != "x" ; then

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