Commit ee03bd6
authored
Don't close pipe in SetError (#120)
Fixes #117.
* The pipe shouldn't be closed on SetError function
* Fix TestExecRunsGoWithNoArgsAndGetsUsageMessagePlusErrorExitStatus2 test. It was not checking that exit status is two
* Update test name to match what is really doing
* Fix example for getting exit status from exec
* Add new example for exit status not zero on Exec1 parent 3e48ccf commit ee03bd6
2 files changed
+19
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | 143 | | |
147 | 144 | | |
148 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
931 | 931 | | |
932 | 932 | | |
933 | 933 | | |
934 | | - | |
| 934 | + | |
| 935 | + | |
935 | 936 | | |
936 | 937 | | |
937 | 938 | | |
938 | | - | |
939 | | - | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
940 | 946 | | |
941 | 947 | | |
942 | 948 | | |
| |||
1497 | 1503 | | |
1498 | 1504 | | |
1499 | 1505 | | |
1500 | | - | |
| 1506 | + | |
1501 | 1507 | | |
| 1508 | + | |
1502 | 1509 | | |
1503 | 1510 | | |
1504 | 1511 | | |
1505 | 1512 | | |
1506 | 1513 | | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
1507 | 1522 | | |
1508 | 1523 | | |
1509 | 1524 | | |
| |||
0 commit comments