Commit 1164406d authored by Torsten Schönfeld's avatar Torsten Schönfeld

Test for correct error location reports

parent 9cecc211
......@@ -17,7 +17,7 @@ unless (eval { Gtk3->import; 1 }) {
}
}
plan tests => 2;
plan tests => 3;
diag (sprintf 'Testing against gtk+ %d.%d.%d',
Gtk3::get_major_version (),
......@@ -35,3 +35,10 @@ SKIP: {
# Gtk3::init().
ok (defined eval 'use 5.8.0; 1');
}
# Ensure that error messages are reported at the point in the program, not in
# Gtk3.pm.
{
eval { my $b = Gtk3::LinkButton->new; };
like ($@, qr/00-init\.t/);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment