Tcl Source Code

View Ticket
Login
Ticket UUID: 681797
Title: deprecate the unixExecs constraint
Type: RFE Created on: 2003-02-06 17:30:39
Submitter: dgp Assigned to: dgp
Subsystem: 34. tcltest Package Severity:
Priority: 5 Medium Last modified: 2010-12-18 06:43:58
Status: Open Closed by:
Resolution: None Closed on:
Version: None
Description:
In the way overlong set of default constraints defined
by tcltest, we find the constraint "unixExecs".

This constraint is true if all the following executables
appears to be available for [exec]:

  cat
  echo
  sh
  wc
  sleep
  chmod
  rm
  mkdir
  fgrep
  grep
  ps

Any test suite that needs a particular executable to
be available should really test for each executable
it needs and define its own constraints.

The only test suite known to use the unixExecs
constraint is Tcl's own test suite, and it only [exec]'s
cat, echo, and grep.

It would be nice to do away with this constraint entirely,
or at least reduce the executables tested to those actually
used.
User Comments:
dgp added on 2004-02-26 07:25:02:
Logged In: YES 
user_id=80530


Note that [exec cat] is especially
broken in Cygwin in its handling
of the command line.  Yet more
reason to stop using this constraint
wherever possible.