udis86: add test
Closes Homebrew/homebrew#26576. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
13c5fd5a06
commit
30ed1180ad
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue