Skip to content

Commit

Permalink
Fix getmaxfd test
Browse files Browse the repository at this point in the history
  • Loading branch information
tewk committed Feb 25, 2011
1 parent 667539c commit 53688c9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pmc/select.pmc
Expand Up @@ -68,7 +68,7 @@ the Hash PMC

=back

=head2 Vtable Functions
=head2 Vtable Functions

=over 4

Expand Down
10 changes: 9 additions & 1 deletion t/pmc/select.t
Expand Up @@ -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
Expand Down

0 comments on commit 53688c9

Please sign in to comment.