diff --git a/Formula/splint.rb b/Formula/splint.rb index 4ac4ae3eb4..65b3de599d 100644 --- a/Formula/splint.rb +++ b/Formula/splint.rb @@ -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