diff --git a/tests/6_reached_if.tush b/tests/6_reached_if.tush index 44333a9..7a3e64f 100644 --- a/tests/6_reached_if.tush +++ b/tests/6_reached_if.tush @@ -11,3 +11,8 @@ $ cd "$MYDIR"; ./$MAKESURE -f tests/6_reached_if.sh -d $ cd "$MYDIR"; ./$MAKESURE -f tests/6_reached_if.sh --resolved bbb | Resolved goals to reach for 'bbb': + +$ cd "$MYDIR"; ./$MAKESURE -f tests/6_reached_if_issue_113.sh g1 + +$ cd "$MYDIR"; ./$MAKESURE -f tests/6_reached_if_issue_113.sh g2 +| must show diff --git a/tests/6_reached_if_issue_113.sh b/tests/6_reached_if_issue_113.sh new file mode 100644 index 0000000..de44871 --- /dev/null +++ b/tests/6_reached_if_issue_113.sh @@ -0,0 +1,10 @@ + +@goal g1 +@reached_if awk 'BEGIN { exit 0 }' + echo 'must not show' + +@goal g2 +@reached_if awk 'BEGIN { exit(1) }' + echo 'must show' + +