diff options
| author | Mike Naberezny | 2014-02-10 09:35:42 -0800 |
|---|---|---|
| committer | Mike McQuaid | 2014-02-10 18:08:25 +0000 |
| commit | a64bf916ee272f1486e242f4a1fc6b7fa04b2d42 (patch) | |
| tree | 8f5963ca7ffe5e7754a6d5b2d18f715435063d27 /Library | |
| parent | 48cdccfb6a032a7caf383c080bf13e3cb302e6c3 (diff) | |
| download | homebrew-a64bf916ee272f1486e242f4a1fc6b7fa04b2d42.tar.bz2 | |
udis86: add test
Closes #26576.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/udis86.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Formula/udis86.rb b/Library/Formula/udis86.rb index ecf71ea6e..d6a879418 100644 --- a/Library/Formula/udis86.rb +++ b/Library/Formula/udis86.rb @@ -14,4 +14,12 @@ class Udis86 < Formula system "make" system "make install" end + + test do + IO.popen("#{bin}/udcli -x", "w+") do |pipe| + pipe.write "cd 80" + pipe.close_write + assert pipe.read.include?("int 0x80") + end + end end |
