• Eric Pouech's avatar
    cmd/tests: Test success/failure of commands. · 6f0e9e5e
    Eric Pouech authored
    The || and && operators to chain commands rely on the LHS command
    to be successful (or unsucessful) to decide upon launching the RHS
    command.
    
    Unfortunately, success/failure is not always when errorlevel is
    0 (non zero).
    
    Some exmaples:
    - if a redirection fails (eg. appending to a non existing file),
      the command (builtin/external) is always unsuccessful (and the
      error level is untouched,
    - external command (when redirection is ok) is succesful when
      program exit code is zero,
    - ditto for a call to a label inside the batch file, with
      the 'exit /b' parameter,
    - it's way more complicated for builtins. Eg 'type' is unsuccessful
      on a non existing file, while 'dir' (on the same unexisting file)
      succeeds.
    
    So start adding some tests about success / failure of some commands.
    Signed-off-by: 's avatarEric Pouech <epouech@codeweavers.com>
    6f0e9e5e
Name
Last commit
Last update
dlls Loading commit data...
documentation Loading commit data...
fonts Loading commit data...
include Loading commit data...
libs Loading commit data...
loader Loading commit data...
nls Loading commit data...
po Loading commit data...
programs Loading commit data...
server Loading commit data...
tools Loading commit data...
.editorconfig Loading commit data...
.gitlab-ci.yml Loading commit data...
.mailmap Loading commit data...
ANNOUNCE.md Loading commit data...
AUTHORS Loading commit data...
COPYING.LIB Loading commit data...
LICENSE Loading commit data...
LICENSE.OLD Loading commit data...
MAINTAINERS Loading commit data...
README.md Loading commit data...
VERSION Loading commit data...
aclocal.m4 Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...