aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew J. Schorr <aschorr@telemetry-investments.com>2013-11-27 16:57:25 -0500
committerAndrew J. Schorr <aschorr@telemetry-investments.com>2013-11-27 16:57:25 -0500
commit7e7f5610683ea455b6d40297b0c3cd11156006da (patch)
treef6cd9749cd39c33f77d152d3b7043b89f4ceb607
parent92d3554b0865ada14d1914842dbc5c7eaa3b01a8 (diff)
downloadegawk-7e7f5610683ea455b6d40297b0c3cd11156006da.tar.gz
egawk-7e7f5610683ea455b6d40297b0c3cd11156006da.tar.bz2
egawk-7e7f5610683ea455b6d40297b0c3cd11156006da.zip
Readdir test should work on filesystems lacking type info in the dirent.
-rw-r--r--test/ChangeLog5
-rw-r--r--test/readdir0.awk2
2 files changed, 6 insertions, 1 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index 6ff3d8ca..50f10ad7 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,5 +1,10 @@
2013-11-27 Andrew J. Schorr <aschorr@telemetry-investments.com>
+ * readdir0.awk: Restore fix so that we do not fail on filesysystems
+ such as XFS where the dirent does not contain the file type.
+
+2013-11-27 Andrew J. Schorr <aschorr@telemetry-investments.com>
+
* Makefile.am (ordchr2): Use --load instead of -l to make sure the
long option works properly. Note that the readfile test still uses
the short version.
diff --git a/test/readdir0.awk b/test/readdir0.awk
index f16f4818..5aedbf70 100644
--- a/test/readdir0.awk
+++ b/test/readdir0.awk
@@ -41,5 +41,5 @@ BEGIN {
printf("mismatch: %d from `ls -afi' and %d from `ls -l'\n", i, j) > "/dev/stderr"
for (i = 1; i in names; i++)
- printf("%s/%s/%s\n", ino[names[i]], names[i], type[names[i]])
+ printf("%s/%s/%s\n", ino[names[i]], names[i], (ftype_unknown ? "u" : type[names[i]]))
}