diff options
Diffstat (limited to 'Library/Formula/cloog.rb')
| -rw-r--r-- | Library/Formula/cloog.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Library/Formula/cloog.rb b/Library/Formula/cloog.rb index f07b6904d..fb3c26ad3 100644 --- a/Library/Formula/cloog.rb +++ b/Library/Formula/cloog.rb @@ -61,11 +61,7 @@ class Cloog < Formula 0 EOS - require 'open3' - Open3.popen3("#{bin}/cloog", "/dev/stdin") do |stdin, stdout, _| - stdin.write(cloog_source) - stdin.close - assert_match /Generated from \/dev\/stdin by CLooG/, stdout.read - end + output = pipe_output("#{bin}/cloog /dev/stdin", cloog_source) + assert_match /Generated from \/dev\/stdin by CLooG/, output end end |
