diff options
| author | Mike Naberezny | 2014-02-08 11:45:21 -0800 |
|---|---|---|
| committer | Mike McQuaid | 2014-02-08 19:48:49 +0000 |
| commit | 016d05d1f531bade84342313f253ffaf5b77ee65 (patch) | |
| tree | 2cdd179c9428da3ccf922f6f8dbbc0bae4934ebe /Library/Formula | |
| parent | 7cfafecb93a1ddb215855a311613cf7fa57c4e88 (diff) | |
| download | homebrew-016d05d1f531bade84342313f253ffaf5b77ee65.tar.bz2 | |
pstree: add test
Closes #26534.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
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 |
