diff options
| author | Ted Ross <tross@apache.org> | 2009-09-21 19:06:04 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2009-09-21 19:06:04 +0000 |
| commit | 16b55b7b89ef76dca3bdc81e0f9aff14cf2ec518 (patch) | |
| tree | 5136b5802e1434141ef398089a22a09add5d8b00 /cpp/bindings | |
| parent | ccacd47fdc47b0bb3b26b87a51c59d88d47e8236 (diff) | |
| download | qpid-python-16b55b7b89ef76dca3bdc81e0f9aff14cf2ec518.tar.gz | |
Properly report test failures in Ruby tests
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@817375 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/bindings')
| -rw-r--r-- | cpp/bindings/qmf/tests/test_base.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/bindings/qmf/tests/test_base.rb b/cpp/bindings/qmf/tests/test_base.rb index 18bf4c2649..8bf433611e 100644 --- a/cpp/bindings/qmf/tests/test_base.rb +++ b/cpp/bindings/qmf/tests/test_base.rb @@ -39,6 +39,8 @@ class ConsoleTestBase < Qmf::ConsoleHandler tests << name if name[0..4] == "test_" end + failures = 0 + tests.sort.each do |t| begin print "#{t}..." @@ -47,10 +49,12 @@ class ConsoleTestBase < Qmf::ConsoleHandler puts " Pass" rescue puts " Fail: #{$!}" + failures += 1 end end @qmfc.del_connection(@broker) + exit(1) if failures > 0 end def assert_equal(left, right, in_text=nil) |
