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 | 752445013e0c18ead2795051fcb3713f6be14dbc (patch) | |
| tree | 4afccd4de23b0118b7a5cddf5ae831ec06d929b1 /qpid/cpp | |
| parent | 7c889a8393dd83381bbd32d0f37aed8826eb47d3 (diff) | |
| download | qpid-python-752445013e0c18ead2795051fcb3713f6be14dbc.tar.gz | |
Properly report test failures in Ruby tests
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@817375 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
| -rw-r--r-- | qpid/cpp/bindings/qmf/tests/test_base.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qpid/cpp/bindings/qmf/tests/test_base.rb b/qpid/cpp/bindings/qmf/tests/test_base.rb index 18bf4c2649..8bf433611e 100644 --- a/qpid/cpp/bindings/qmf/tests/test_base.rb +++ b/qpid/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) |
