From Fedora Project Wiki
No edit summary |
(update path to the configuration file) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
|description=This test case checks whether ABRT blacklisting of certain packages works correctly. | |description=This test case checks whether ABRT blacklisting of certain packages works correctly. | ||
|actions= | |actions= | ||
# Edit the config file {{filename|/etc/abrt/abrt.conf}} and find the lines: | # Edit the config file {{filename|/etc/abrt/abrt-action-save-package-data.conf}} and find the lines: | ||
#: # Blacklisted packages | #: # Blacklisted packages | ||
#: BlackList = nspluginwrapper,valgrind,strace,avant-window-navigator | #: BlackList = nspluginwrapper,valgrind,strace,avant-window-navigator | ||
# Add a package whose application you can conveniently crash to the list or crash one from the current list | # Add a package whose application you can conveniently crash to the list or crash one from the current list | ||
# | # Restart abrt with the command {{command|su -c 'systemctl restart abrtd.service'}} | ||
# Run | # 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)}} | ||
|results= | |results= | ||
# ABRT should ignore the crash of the blacklisted application | # ABRT should ignore the crash of the blacklisted application | ||
# Look to {{filename|/var/log/messages}} for 'Corrupted or bad dump /var/spool/abrt/ccpp-... (res:2), deleting' | # 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:Package_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
- 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
- Add a package whose application you can conveniently crash to the list or crash one from the current list
- Restart abrt with the command
su -c 'systemctl restart abrtd.service'
- Run one of the blacklisted commands - e.g. run
strace sleep 3m
- and then kill the application from the newly blacklisted package with the commandkill -SIGSEGV $(strace_pid)
Expected Results
- ABRT should ignore the crash of the blacklisted application
- 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'