diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/pstree.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Formula/pstree.rb b/Library/Formula/pstree.rb index b5c29bb9e..9d5be3f06 100644 --- a/Library/Formula/pstree.rb +++ b/Library/Formula/pstree.rb @@ -9,4 +9,11 @@ class Pstree < Formula system "make pstree" bin.install "pstree" end + + test do + lines = `#{bin}/pstree #{Process.pid}`.strip.split("\n") + assert lines[0].include?($0) + assert lines[1].include?("#{bin}/pstree") + assert_equal 0, $?.exitstatus + end end |
