aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike Naberezny2014-02-01 09:46:26 -0800
committerMike McQuaid2014-02-02 09:12:05 +0000
commit25c4c01a8a872b38a806db19d4f04bdfe699045e (patch)
tree9aa63bc634bd1f0e0a4b92fff7433beb5a7b26a0 /Library/Formula
parent8089ab7efdf7c6db4414c765257592b73995450b (diff)
downloadhomebrew-25c4c01a8a872b38a806db19d4f04bdfe699045e.tar.bz2
z80dasm: improve test by disassembling a small file
Closes #26333. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/z80dasm.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Formula/z80dasm.rb b/Library/Formula/z80dasm.rb
index a84b993d8..3721ca3aa 100644
--- a/Library/Formula/z80dasm.rb
+++ b/Library/Formula/z80dasm.rb
@@ -11,6 +11,11 @@ class Z80dasm < Formula
end
test do
- system bin/'z80dasm', '-V'
+ path = testpath/"a.bin"
+ path.open("wb") { |f| f.write [0xcd, 0x34, 0x12].pack("c*") }
+
+ output = `#{bin}/z80dasm #{path}`.strip
+ assert output.include?("call 01234h")
+ assert_equal 0, $?.exitstatus
end
end