mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2025-02-15 03:54:32 +00:00
29 lines
669 B
Perl
29 lines
669 B
Perl
|
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.
|
||
|
check_screen("bugreporter_notification_displayed", timeout => '60', no_wait => '0');
|
||
|
}
|
||
|
|
||
|
sub test_flags {
|
||
|
return {always_rollback => 1};
|
||
|
}
|
||
|
|
||
|
1;
|
||
|
|
||
|
# vim: set sw=4 et:
|
||
|
|