From Fedora Project Wiki
Description
This test case tests the functionality of the ABRT Ruby exception handler.
Setup
Install rubygem-abrt package
How to test
- run rubygem-abrt self test
RUBYOPT='-rabrt' ruby /usr/share/gems/gems/abrt-0.0.3/lib/abrt.rb
- check the logs
su -c 'grep rbhook /var/log/messages'
Expected Results
- Step #1 completes with the following output
/usr/share/gems/gems/abrt-0.0.3/lib/abrt.rb:13:in `<top (required)>': can't modify frozen Array (RuntimeError) from /usr/share/rubygems/rubygems/custom_require.rb:60:in `require' from /usr/share/rubygems/rubygems/custom_require.rb:60:in `rescue in require' from /usr/share/rubygems/rubygems/custom_require.rb:35:in `require'
- Step #1 the output should be similar to the following
Sep 19 15:37:10 dhcp-25-122 abrt-server[6608]: Saved problem directory of pid 6606 to '/var/spool/abrt/rbhook-2012-09-19-15:37:10-6606' Sep 19 15:37:10 dhcp-25-122 abrtd: Directory 'rbhook-2012-09-19-15:37:10-6606' creation detected Sep 19 15:37:17 dhcp-25-122 abrtd: New problem directory /var/spool/abrt/rbhook-2012-09-19-15:37:10-6606, processing