udis86: add test

Closes Homebrew/homebrew#26576.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Mike Naberezny 2014-02-10 09:35:42 -08:00 committed by Mike McQuaid
parent 13c5fd5a06
commit 30ed1180ad

View file

@ -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