From Fedora Project Wiki

(add restart ABRT instructions)
(update path to the configuration file)
 
(12 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{QA/Test_Case
 
{{QA/Test_Case
|description=Testing [[Features/ABRT|ABRT]] BlackListing of certain packages.
+
|description=This test case checks whether ABRT blacklisting of certain packages works correctly.
 
|actions=
 
|actions=
Edit config file /etc/abrt/abrt.conf, find lines:  
+
# Edit the config file {{filename|/etc/abrt/abrt-action-save-package-data.conf}} and find the lines:  
<pre>
+
#: # Blacklisted packages
# blacklisted packages
+
#: BlackList = nspluginwrapper,valgrind,strace,avant-window-navigator
BlackList = bash, bind, apache2
+
# Add a package whose application you can conveniently crash to the list or crash one from the current list
</pre>
+
# Restart abrt with the command {{command|su -c 'systemctl restart abrtd.service'}}
 
+
# Run one of the blacklisted commands - e.g. run {{command|strace sleep 3m}} - and then kill the application from the newly blacklisted package with the command {{command|kill -SIGSEGV $(strace_pid)}}
Set ''BlackList'' to names of packages whose crashes ABRT should ignore.
 
 
 
Restart ABRT: <pre># service abrt restart</pre>
 
 
 
Crash applications and watch if they are ignored according to configuration.
 
 
 
 
|results=
 
|results=
# abrt should ignore crashes of applications from blacklisted packages
+
# ABRT should ignore the crash of the blacklisted application
# all other packages might be ignored or not - this depends on [[QA:Testcase ABRT GPG check]] and [[QA:TestCase ABRT GPG Keys]].
+
# Look to {{filename|/var/log/messages}} for 'abrt[6443]: saved core dump of pid 6428 (/usr/bin/strace)' and 'Corrupted or bad dump /var/spool/abrt/ccpp-... (res:2), deleting'
 
}}
 
}}
  
 
+
[[Category:Package_abrt_test_cases]]
[[Category:ABRT_Test_Cases]]
 

Latest revision as of 08:28, 31 October 2013

Description

This test case checks whether ABRT blacklisting of certain packages works correctly.


How to test

  1. Edit the config file /etc/abrt/abrt-action-save-package-data.conf and find the lines:
    # Blacklisted packages
    BlackList = nspluginwrapper,valgrind,strace,avant-window-navigator
  2. Add a package whose application you can conveniently crash to the list or crash one from the current list
  3. Restart abrt with the command su -c 'systemctl restart abrtd.service'
  4. Run one of the blacklisted commands - e.g. run strace sleep 3m - and then kill the application from the newly blacklisted package with the command kill -SIGSEGV $(strace_pid)

Expected Results

  1. ABRT should ignore the crash of the blacklisted application
  2. Look to /var/log/messages for 'abrt[6443]: saved core dump of pid 6428 (/usr/bin/strace)' and 'Corrupted or bad dump /var/spool/abrt/ccpp-... (res:2), deleting'