summaryrefslogtreecommitdiff
path: root/t/op/stat.t
Commit message (Collapse)AuthorAgeFilesLines
* t/op/stat.t: use 'ls -l' on android, even if d_readlink is definedBrian Fraser2014-01-261-1/+2
|
* Remove DG/UX support.Nicholas Clark2013-05-271-10/+1
| | | | | DG/UX was a Unix sold by Data General. The last release was in April 2001. It only runs on Data General's own hardware.
* Remove the Rhapsody port.Nicholas Clark2013-01-161-2/+1
| | | | | | | Rhapsody was an Apple OS that later evolved into Darwin and Mac OS X. It was initially only released to developers, but later became Mac OS X Server, with releases in 1999 and 2000. It was obsoleted by Mac OS X 10.0, released in March 2001.
* Remove the MPE/iX port.Nicholas Clark2012-09-211-1/+0
| | | | | MPE/iX was a business-oriented minicomputer operating system made by Hewlett-Packard. Support from HP terminated at the end of 2010.
* RT#114312: prevent ls from colourizing outputKaren Etheridge2012-09-011-0/+1
| | | | | | ANSI colour codes in the `ls -l /dev` output was preventing some substitutions from matching, causing a subsequent test to fail when 'stdout' or 'stderr' was not properly removed from $DEV.
* In t/op/stat.t, ensure that the output of ls is not localised.Nicholas Clark2012-06-261-0/+3
| | | | | | | t/op/stat.t parses the output of ls, and will get confused if localisation happens to change the header line containing the total to a word starting with the letter c. This fixes the build issue on a Czech locale reported in http://perlmonks.org/?node=973257 and RT #113472.
* Skip stat.t readability test on VMS.Craig A. Berry2012-02-141-0/+1
| | | | | | | | This new test grants full access on a test file to group and other. Since I'm a member of my own group and everyone is someone, I of course have full access to the file, but the test expects it to be unreadable. If there is a hierarchy in Unix file permissions, it clearly doesn't work the same way as the VMS one.
* stat.t: Use $>, not just $< for skippingFather Chrysostomos2012-01-301-1/+1
| | | | This is the paranoid version of just using $>.
* stat.t: Skip test when running as rootRainer Tammer2012-01-261-0/+1
|
* VMS-specific symlink tweak for stat.tCraig A. Berry2012-01-201-1/+3
| | | | | | If the target of a symlink has a version number in the symlink, that makes the symlink implementation unable to locate it, so trim off the version.
* [perl #71002] stat() on unopened fh _Father Chrysostomos2012-01-201-1/+11
| | | | | | | | stat _ was producing an erroneous warning about an unopened filehandle with _. But _ isn’t a real filehandle and is special-cased, so it shouldn’t warn. See also commit 8080e3c8.
* stat.t: Avoid unconditional lstat on file nameFather Chrysostomos2012-01-151-4/+8
| | | | lstat on handles is ok.
* stat.t, filetest.t: Actually gen rand file namesFather Chrysostomos2012-01-151-1/+1
| | | | This mistake of mine was stupid enough I laughed out loud.
* Make lstat($ioref) and lstat($gv) consistentFather Chrysostomos2012-01-141-1/+8
| | | | | | | As documented in perldiag, lstat($gv) warns and does an fstat. lstat($ioref) wasn’t doing what was documented, but after warning would do the same as stat(_).
* stat.t: Make test for -T _ and lstat more robustFather Chrysostomos2012-01-141-2/+2
| | | | | | | | | | | | It is now less likely to fail if one runs stat.t manually when tests are running, due to the random file name. It also works now when the script chdirs (when run outside t), because it no longer relies on $0 being a real file. That last part was broken by commit ad2d99e39, which made -T _ more consistent when it cannot open the file. It used to set the stat type, but not the success status (as of commit 25988e07, which fixed #4253).
* -T "unreadable file" should set stat info consistentlyFather Chrysostomos2012-01-141-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | This was mentioned in ticket #77388. It turns out to be related to #4253. If the file cannot be opened, -T and -B on filenames set the last han- dle to null and set the last stat type to stat, but leave the actual stat buffer and success status as they were. That means that stat(_) will continue to return the previous buffer, but lstat(_) will no longer work. This is another of those inconsistent cases where the internal stat info is only partially set. Originally, this code would set PL_laststatval (the success status) to -1. Commit 25988e07 (the patch in ticket #4253) intentionally changed this to make -T _ less suprising on read-only files. But the patch ended up affecting -T with an explicit file name, too. It also only partially fixed things for -T _, because the last stat type *was* still being set. This commit changes it to set all the stat info, for explicit file names, or no stat info, for _ (if the previous stat was with a file name).
* stat.t: Add bug numberFather Chrysostomos2012-01-141-0/+1
|
* stat $ioref should reset the internal stat typeFather Chrysostomos2012-01-131-1/+10
| | | | | | | | In addition to a stat buffer, Perl keeps track internally of which type of stat was done last, either stat or lstat, so that lstat _ can die if the previous type was stat. This was not being reset for stat $ioref. Filetest ops were fine.
* Make (l)stat respect get-magic on globs and globrefsFather Chrysostomos2011-09-121-1/+7
| | | | | | | | | | | | | | | They were ignoring get-magic for those. A side effect of this fix is that lstat filehandle warnings and errors are now consistent: lstat _ used to die if the previous stat was not an lstat, but lstat *_ and lstat \*_ would happily return what was in the buffer. Now they die. lstat FH and \*FH used to warn, but not lstat *FH. Now it does. See bug #98864.
* Ensure t/op/stat.t passes under minitest if File::Spec is unavailable.Nicholas Clark2011-03-061-8/+16
| | | | | | | require File::Spec in an eval. For miniperl, if the eval fails, skip tests relating to File::Spec->devnull() and needing File::Spec->rel2abs(), and assume that '.' will work as the current directory. Remove a call to catfile() only needed for MacOS Classic - every other platform will accept Unix-style paths.
* Fix typos (spelling errors) in t/*.Peter J. Acklam) (via RT2011-01-071-2/+2
| | | | | | | # New Ticket Created by (Peter J. Acklam) # Please include the string: [perl #81916] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=81916 >
* Replaced '1 while unlink' with 'unlink_all' in t/op/stat.tBrad Gilbert2010-12-081-2/+2
|
* CYG23-544-statReini Urban2010-01-141-3/+8
| | | | | | | | | Stable cygwin patch for root filetests (gid 0 root <= gid 544 Administrators). On cygwin check for the Administrators group (544) which has root rights regarding -r filetests. Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
* Opening dirhandle DIR also as a file needs no warnings 'deprecated';Nicholas Clark2009-10-161-4/+10
|
* Remove code specific to MacOS Classic from core testsRafael Garcia-Suarez2009-09-081-3/+2
|
* Mark all .t and .pm files as non executableRafael Garcia-Suarez2009-06-061-0/+0
|
* Use test.pl's tempfile().Nicholas Clark2008-08-071-2/+2
| | | p4raw-id: //depot/perl@34180
* [perl #47746] Not OK: perl 5.10.0 +RC1 on ia64-linux 2.4.21-sgi302r24John P. Linderman2008-06-151-14/+22
| | | | | | From: "John P. Linderman" <jpl@research.att.com> Message-Id: <200711271850.lARIoEfN14794612@raptor.research.att.com> p4raw-id: //depot/perl@34056
* Oops, 31665 was empty.Craig A. Berry2007-07-291-2/+3
| | | p4raw-id: //depot/perl@31666
* Add Perl_my_dirfd() to util.cSteve Peters2007-05-011-2/+2
| | | p4raw-id: //depot/perl@31112
* Check that stat and -X favours the file handle over the directoryNicholas Clark2007-03-131-3/+15
| | | | | handle when using *THINGY{IO} syntax too. p4raw-id: //depot/perl@30572
* Check that stat and -X on barewords favour the file handle over theNicholas Clark2007-03-131-3/+14
| | | | | directory handle for the ambiguous case. p4raw-id: //depot/perl@30571
* Fixes for the test suite on OS/2Ilya Zakharevich2006-12-181-1/+2
| | | | | Message-ID: <20061214023222.GA29084@powdermilk.math.berkeley.edu> p4raw-id: //depot/perl@29578
* Supress df warning in stat.t on OS XMichael G Schwern2006-11-081-1/+1
| | | | | Message-ID: <4551E0F6.20108@gmail.com> p4raw-id: //depot/perl@29234
* Close file before unlinking (on Win32 at least!)Steve Hay2006-08-111-0/+1
| | | p4raw-id: //depot/perl@28694
* op/stat.t: SKIP count fix in case of no dirfd()Jarkko Hietaniemi2006-08-011-2/+2
| | | | | Message-Id: <200608010504.k7154QT3178692@kosh.hut.fi> p4raw-id: //depot/perl@28635
* Tests to go with change #28628.Steve Peters2006-07-301-3/+23
| | | | | p4raw-link: @28628 on //depot/perl: ad02613cb6d8974aab9c68839c06129c8510c983 p4raw-id: //depot/perl@28632
* Allow stat() and -X file tests work on dirhandles.Steve Peters2006-07-031-1/+8
| | | p4raw-id: //depot/perl@28473
* As Anno Siegel points out, mtime/ctime test should be skippedRafael Garcia-Suarez2006-02-181-1/+1
| | | | | on OS X on HFS+. p4raw-id: //depot/perl@27223
* RE: [perl #37571] -z FH broken with Borland build Paul Marquess2005-11-021-1/+8
| | | | | | From: "Paul Marquess" <paul.marquess@ntlworld.com> Message-ID: <003501c5df06$7d63fdb0$0505140a@myopwv.com> p4raw-id: //depot/perl@25952
* [patch] blead@25282 - VMS specific fixes. [2nd try]John E. Malmberg2005-08-111-0/+12
| | | | | | From: "John E. Malmberg" <wb8tyw@qsl.net> Message-ID: <42FAC54B.2050207@qsl.net> p4raw-id: //depot/perl@25284
* delete a non-fucntioning chown in stat.t: it didn't have gid arg.Dave Mitchell2005-07-171-5/+0
| | | | | Spotted by Gisle Aas. p4raw-id: //depot/perl@25162
* Typo in t/op/stat.tGisle Aas2005-07-151-1/+1
| | | | | Message-ID: <lr64vcfv4t.fsf@caliper.activestate.com> p4raw-id: //depot/perl@25144
* Patch for Perlbug #4253Nikolai Eipel2005-02-181-1/+13
| | | | | | | | Message-Id: <200501291652.53841.eipel@web.de> (-T and -B invalidate _ filehandle when no read permission on file) plus a regression test p4raw-id: //depot/perl@23986
* Re: [PATCH] File::Find dies on find({follow=>1, ...}) on Win32Yitzchak Scott-Thoennes2005-01-211-10/+16
| | | | | Message-ID: <20041221000856.GA2924@efn.org> p4raw-id: //depot/perl@23842
* op/stat.t test 9 failing on recent cygwin snapshotsYitzchak Scott-Thoennes2005-01-191-1/+1
| | | | | Message-ID: <20050116183045.GA2768@efn.org> p4raw-id: //depot/perl@23821
* Re: [perl #27906] stat documentation correctionAndy Lester2004-03-261-6/+8
| | | | | | Message-Id: <20040325034830.GA5865@petdance.com> (Applied with a correction from Spider Boardman.) p4raw-id: //depot/perl@22593
* Re: NCR MP-RAS perl problems [perl #23791]grommel@sears.com2003-09-231-0/+3
| | | | | Message-ID: <OF17BD5036.3CA48F9B-ON86256DAA.00483620-86256DAA.0066A1AA@LocalDomain> p4raw-id: //depot/perl@21344
* -M -A -C brokenIlya Zakharevich2003-09-181-1/+16
| | | | | | | Message-ID: <20030918180202.GA21949@math.berkeley.edu> (use stat.t instead of time.t) p4raw-id: //depot/perl@21277
* Re: [PATCH] test clean-up for VMSCraig A. Berry2003-07-211-1/+5
| | | | | | From: "Craig A. Berry" <craigberry@mac.com> Message-ID: <3F1AB8A4.2070207@mac.com> p4raw-id: //depot/perl@20175