diff options
author | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2013-11-27 16:57:25 -0500 |
---|---|---|
committer | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2013-11-27 16:57:25 -0500 |
commit | 7e7f5610683ea455b6d40297b0c3cd11156006da (patch) | |
tree | f6cd9749cd39c33f77d152d3b7043b89f4ceb607 | |
parent | 92d3554b0865ada14d1914842dbc5c7eaa3b01a8 (diff) | |
download | egawk-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/ChangeLog | 5 | ||||
-rw-r--r-- | test/readdir0.awk | 2 |
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]])) } |