Subject: | Test suite fails due to invalid file descriptor usage |
Using Gnome2-Vte-0.09 and vte-0.28.2-2.fc16.x86_64
$ perl t/VteTerminal.t
1..47
ok 1 - The object isa Gnome2::Vte::Terminal
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7 - The object isa Gtk2::Pango::FontDescription
ok 8
ok 9
ok 10
ok 11
ok 12
ok 13
ok 14 - The reference isa ARRAY
ok 15
ok 16 - The reference isa ARRAY
ok 17
ok 18 - The reference isa ARRAY
ok 19
ok 20 - The reference isa ARRAY
ok 21 - The reference isa HASH
ok 22
ok 23
ok 24
ok 25
ok 26
ok 27
ok 28 - The object isa Gtk2::Gdk::Color
ok 29
ok 30 - The object isa Gtk2::Gdk::Color
ok 31
ok 32
ok 33
ok 34
ok 35
ok 36
ok 37
ok 38
ok 39 - The object isa Gtk2::Adjustment
ok 40
ok 41
ok 42
ok 43
ok 44
ok 45
ok 46
ok 47
(VteTerminal.t:28925): Vte-0.0-CRITICAL **: vte_pty_set_utf8: assertion
`priv->pty_fd > 0' failed
Segmentation fault
This is caused by the following code in the test case
$terminal -> set_pty(fileno STDIN);
STDIN has a file descriptor of 0, so it causes the assertion in the C
layer to fail. Trivial fix is to use STDOUT as the file instead.