From 53688c9ae6610e332cf48a28fdcd5ab037ef2bb9 Mon Sep 17 00:00:00 2001 From: Kevin Tew Date: Tue, 22 Feb 2011 15:13:35 -0700 Subject: [PATCH] Fix getmaxfd test --- src/pmc/select.pmc | 2 +- t/pmc/select.t | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/pmc/select.pmc b/src/pmc/select.pmc index 0999b024b9..66f314cc18 100644 --- a/src/pmc/select.pmc +++ b/src/pmc/select.pmc @@ -68,7 +68,7 @@ the Hash PMC =back -=head2 Vtable Functions +=head2 Vtable Functions =over 4 diff --git a/t/pmc/select.t b/t/pmc/select.t index 977c001a20..4c23d4693f 100644 --- a/t/pmc/select.t +++ b/t/pmc/select.t @@ -52,8 +52,16 @@ Tests the Select PMC. $P9 = "FH2" $P1."update"($P3, $P9, 5) + $I1 = $P1.'getfd'($P0) + $I2 = $P1.'getfd'($P3) + + if $I1 > $I2 goto a + $I1 = $I2 +a: + $I0 = $P1.'getmaxfd'() - is($I0, 6, 'maxid = 6') + + is($I0, $I1, 'maxid = max(fd1 fd2)') $P2 = $P1.'get_fd_map'() $I3 = $P2