Verify that stderr is taken into account

This commit is contained in:
Sven van Heugten 2026-03-03 20:28:17 +01:00
parent b57d527d6e
commit 475b0c6fa1
No known key found for this signature in database
GPG key ID: D612F88666F4F660

View file

@ -170,3 +170,12 @@ commit_with_assertion() {
assert_output --partial "Expected output to equal: goodbye"
assert_output --partial "Actual output: hello"
}
@test "assert_output should also check stderr output" {
git checkout -b feature
commit_with_assertion $'run sh -c "echo err 1>&2"\nassert_output err'
run git-check-assertions
assert_success
}