3 D this Tesh unit tests the option of the command line `--keep-going'
\r
5 < #include <stdlib.h>
\r
9 < main(int argc, char* argv[])
\r
11 < printf("Hello Tesh\n");
\r
13 < return EXIT_SUCCESS;
\r
20 # in this case the option keep-going-unit is not specified so only the first command is executed.
\r
21 ! expect return $EEXITCODENOTMATCH
\r
42 $ ./tesh --log='log.thresh:info tesh.fmt:%m%n'
\r
43 > Test unit from stdin
\r
45 > [stdin:3] ./job : NOK (returned code `0' instead `1')
\r
46 > Output of <stdin:3> so far:
\r
49 > Test unit `(stdin)' : NOK (exit code mismatch)
\r
52 # in this case the option keep-going-unit is specified so, all the command are executed.
\r
53 ! expect return $EEXITCODENOTMATCH
\r
74 $ ./tesh --log='log.thresh:info tesh.fmt:%m%n' --keep-going-unit
\r
75 > Test unit from stdin
\r
77 > [stdin:3] ./job : NOK (returned code `0' instead `1')
\r
78 > Output of <stdin:3> so far:
\r
85 > Test unit `(stdin)' : NOK (exit code mismatch)
\r