test(audit): reject arithmetic diagnostics across Bash versions

This commit is contained in:
2026-10-30 11:10:22 -03:00
parent 9f95353074
commit f185091247
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -23,5 +23,5 @@ setup() {
@test "pre-format checks handle zero profiles without arithmetic diagnostics" {
run run_preformat_check
[ "$status" -eq 0 ]
[[ "$output" != *"integer expression expected"* ]]
[[ ! "$output" =~ integer.*expected ]]
}
+1 -1
View File
@@ -49,7 +49,7 @@ teardown() {
' bash "$BATS_TEST_DIRNAME/.."
[ "$status" -eq 0 ]
[[ "$output" == *"Risk:"* ]]
[[ "$output" != *"integer expression expected"* ]]
[[ ! "$output" =~ integer.*expected ]]
}
@test "audit and report JSON contain numeric zero counts under nounset" {