This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Refactor ext/POSIX/t/termios.t
authorNicholas Clark <nick@ccl4.org>
Tue, 6 Sep 2011 11:36:07 +0000 (13:36 +0200)
committerNicholas Clark <nick@ccl4.org>
Tue, 13 Sep 2011 09:28:04 +0000 (11:28 +0200)
commit674d0cd93bd328db0075c660030401d94c10c1e0
tree5e8d94f6879b8faccc769018ec3222375c971bf0
parentacbe1b9d7cdeb5a96064758057f567cd2bc0c4f1
Refactor ext/POSIX/t/termios.t

* Only import termios.h functions and constants from POSIX
* Loop over STDIN, STDOUT, STDERR instead of duplicating code.
* Avoid a needless defined? test, as isa_ok() handles undef.
* Switch to done_testing(), which also allows @getters to be inlined and
  eliminated.
* The various get*() methods return integer values, so check this.
* Enable warnings.
ext/POSIX/t/termios.t