Let annotations take effect earlier (fixes #2534)

This commit is contained in:
Vidar Holen 2022-07-28 09:37:23 -07:00
parent d0dd81e1fa
commit c76b8d9a32
2 changed files with 49 additions and 42 deletions

View file

@ -496,6 +496,17 @@ prop_fileCannotEnableExternalSources2 = result == [1144]
csCheckSourced = True
}
prop_rcCanSuppressEarlyProblems1 = null result
where
result = checkWithRc "disable=1071" emptyCheckSpec {
csScript = "#!/bin/zsh\necho $1"
}
prop_rcCanSuppressEarlyProblems2 = null result
where
result = checkWithRc "disable=1104" emptyCheckSpec {
csScript = "!/bin/bash\necho 'hello world'"
}
return []
runTests = $quickCheckAll