From Fedora Project Wiki

(/var/spool/abrt -> /var/tmp/abrt)
No edit summary
Line 33: Line 33:
         from /usr/share/rubygems/rubygems/custom_require.rb:35:in `require'
         from /usr/share/rubygems/rubygems/custom_require.rb:35:in `require'
</pre>
</pre>
Notification is raised and the crash is listed in gnome-abrt.
</li>
</li>
<li>
<li>
Line 43: Line 44:
</li>
</li>
<li>
<li>
Crash for will-crash package was recorded
Crash for will-crash package was recorded.
Notification is raised and the crash is listed in gnome-abrt.
</li>
</li>
</ol>
</ol>
}}
}}
[[Category:Package_abrt_test_cases]]
[[Category:Package_abrt_test_cases]]

Revision as of 09:35, 7 May 2013

Description

This test case tests the functionality of the ABRT Ruby exception handler.

Setup

Install rubygem-abrt and will-crash packages

How to test

  1. run rubygem-abrt self test
    RUBYOPT='-rabrt' ruby $(rpm -ql rubygem-abrt | grep abrt.rb)
    
  2. check the logs
    su -c 'grep rbhook /var/log/messages'
    
  3. run will_ruby_raise
    RUBYOPT='-rabrt' will_ruby_raise
    

Expected Results

  1. Step #1 completes with an output similar to the following one
    /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'
    

    Notification is raised and the crash is listed in gnome-abrt.

  2. Step #2 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/tmp/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/tmp/abrt/rbhook-2012-09-19-15:37:10-6606, processing
    
  3. Crash for will-crash package was recorded. Notification is raised and the crash is listed in gnome-abrt.