diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2021-05-14 18:07:58 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2021-05-14 18:07:58 +0900 |
commit | f210d456a8a3ab29085bd811494c3bdf36dd6f69 (patch) | |
tree | 01905c025c54de6a4aa5b7e2b5e18f5fa88eafc0 /test/objspace | |
parent | 702961a88bbbfd556139c208d8f4d373b52e530d (diff) |
test/objspace/test_objspace.rb: check stderr before stdout
When `require "objspace/trace"` fails, previously the failure says:
```
1) Failure:
TestObjSpace#test_objspace_trace [/tmp/ruby/v3/src/trunk-mjit/test/objspace/test_objspace.rb:621]:
<3> expected but was
<0>.
```
but this is hard to debug.
Diffstat (limited to 'test/objspace')
-rw-r--r-- | test/objspace/test_objspace.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/objspace/test_objspace.rb b/test/objspace/test_objspace.rb index 7797d199fa..8ed04f59c9 100644 --- a/test/objspace/test_objspace.rb +++ b/test/objspace/test_objspace.rb @@ -625,11 +625,11 @@ class TestObjSpace < Test::Unit::TestCase c = 42 p a, b, c end; + assert_equal ["objspace/trace is enabled"], err assert_equal 3, out.size assert_equal '"foo" @ -:2', out[0] assert_equal '"bar" @ -:3', out[1] assert_equal '42', out[2] - assert_equal ["objspace/trace is enabled"], err end end end |