Skip to content

Commit efc93f4

Browse files
test-declarative: assert needs refusal to operate from subshells
1 parent 3fae29e commit efc93f4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test-declarative

+4
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ leak_test() {
9292

9393
main() {
9494
# we need all tests; run them in order.
95+
(needs test 2>/dev/null) && {
96+
echo "ERROR: Must refuse to satisfy dependencies within subshells" >&2
97+
return 1
98+
}
9599
needs test
96100
echo "SUCCESS"
97101
}

0 commit comments

Comments
 (0)