splint: audit fix
fix audit from error message: ``` splint: * Use `assert_match` instead of `assert ...include?` Error: 1 problem in 1 formula ``` Closes Homebrew/homebrew#46786. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
613f4c99e1
commit
33f0e0c1c7
1 changed files with 2 additions and 3 deletions
|
@ -29,9 +29,8 @@ class Splint < Formula
|
|||
}
|
||||
EOS
|
||||
|
||||
output = `#{bin}/splint #{path} 2>&1`
|
||||
assert output.include?("5:18: Variable c used before definition")
|
||||
assert_equal 1, $?.exitstatus
|
||||
output = shell_output("#{bin}/splint #{path} 2>&1", 1)
|
||||
assert_match "5:18: Variable c used before definition", output
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue