From: Steve Peters Date: Tue, 1 May 2007 18:20:02 +0000 (+0000) Subject: Fixing a Perl_my_dirfd() related test failure. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4964fccb418626bbfc96e446747345a4f3e41961;p=p5sagit%2Fp5-mst-13.2.git Fixing a Perl_my_dirfd() related test failure. p4raw-id: //depot/perl@31113 --- diff --git a/t/op/chdir.t b/t/op/chdir.t index db58e12..2976f43 100644 --- a/t/op/chdir.t +++ b/t/op/chdir.t @@ -47,7 +47,7 @@ $Cwd = abs_path; SKIP: { skip("no fchdir", 16) unless $has_fchdir; - my $has_dirfd = ($Config{d_dirfd} || "") eq "define"; + my $has_dirfd = ($Config{d_dirfd} || $Config{d_dir_dd_fd} || "") eq "define"; ok(opendir(my $dh, "."), "opendir ."); ok(open(my $fh, "<", "op"), "open op"); ok(chdir($fh), "fchdir op"); @@ -83,7 +83,7 @@ SKIP: { ok(opendir(H, "op"), "opendir op") or diag $!; ok(open(H, "<", "base"), "open base") or diag $!; } - if (($Config{d_dirfd} || "") eq "define") { + if ($has_dirfd) { ok(chdir(H), "fchdir to op"); ok(-f "chdir.t", "verify that we are in 'op'"); chdir ".." or die $!;