use base "installedtest"; use strict; use testapi; use utils; # This script tests if a notification appears after an exception is caught. sub run { my $self = shift; # Open Terminal and use will-crash to generate a simulated crash. menu_launch_type("terminal"); # Check that the application has started. assert_screen("apps_run_terminal"); # Type the command. enter_cmd("will_segfault"); # Wait one minute if a notification is displayed, otherwise softfail. unless (check_screen("bugreporter_notification_displayed", timeout => '60')) { record_soft_failure("The crash notification has not been shown in one minute time frame."); } # Exit the terminal. enter_cmd("exit"); wait_still_screen(2); # Start Abrt for further testing. menu_launch_type("abrt"); assert_screen("apps_run_abrt"); } sub test_flags { return {fatal => 1, milestone => 1}; } 1; # vim: set sw=4 et: