Debian Codegraph @

xt/rt7474.t

raw
1 #!/usr/bin/perl -w
2 # -*- perl -*-
3
4 # See https://rt.cpan.org/Ticket/Display.html?id=7474
5 # Marked as unimportant
6
7 use strict;
8
9 use Tk;
10
11 BEGIN {
12 if (!eval q{
13 use Test::More;
14 1;
15 }) {
16 print "1..0 # skip no Test::More module\n";
17 exit;
18 }
19 }
20
21 plan tests => 1;
22
23 my $mw = MainWindow->new;
24 my $button = $mw->Button->grid;
25 $button->destroy;
26 # segfaults:
27 $button->grid;
28 pass 'No segfault if placing a destroyed widget with grid()';
29
30 __END__