home *** CD-ROM | disk | FTP | other *** search
- #
- # Test that HOME and LOGDIR work for chdir
- #
-
- print "1..2\n";
-
- chop ($wd = `cd`);
-
- ($up = $wd) =~ s,comp[\\/]$,,;
-
- $ENV{'HOME'} = $up;
- $ENV{'LOGDIR'} = $wd;
-
- chdir;
- chop ($here = `cd`);
- if ($here eq $up) {print "ok 1\n";} else {print "not ok 1\n";}
- undef($ENV{'HOME'});
-
- chdir;
- chop ($here = `cd`);
- if ($here eq $wd) {print "ok 2\n";} else {print "not ok 2\n";}