[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gawk-diffs] [SCM] gawk branch, gawk-4.2-stable, updated. gawk-4.1.0-296
From: |
Arnold Robbins |
Subject: |
[gawk-diffs] [SCM] gawk branch, gawk-4.2-stable, updated. gawk-4.1.0-2964-g9f5ec4e |
Date: |
Mon, 30 Apr 2018 23:38:48 -0400 (EDT) |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".
The branch, gawk-4.2-stable has been updated
via 9f5ec4e56b5e91b70c7f2148c6f3589453ab00f2 (commit)
from 2836a375814d69a2a76336a142a73e86b446cf22 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=9f5ec4e56b5e91b70c7f2148c6f3589453ab00f2
commit 9f5ec4e56b5e91b70c7f2148c6f3589453ab00f2
Author: Arnold D. Robbins <address@hidden>
Date: Mon Apr 30 20:38:32 2018 -0700
Improve capability of readdir test.
diff --git a/test/ChangeLog b/test/ChangeLog
index 7766653..ad18eb6 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,9 @@
+2018-04-30 Arnold D. Robbins <address@hidden>
+
+ * readdir0.awk: Handle symbolic links in the top level
+ source directory. (Useful if testing for PC where the PC
+ test makefile wants a gawk.exe to exist.)
+
2018-04-20 Arnold D. Robbins <address@hidden>
* Makefile.am (readdir_retest): Use $(srcdir) to reference source
diff --git a/test/readdir0.awk b/test/readdir0.awk
index 2b7674a..012826e 100644
--- a/test/readdir0.awk
+++ b/test/readdir0.awk
@@ -1,7 +1,6 @@
# NOTE: This program is not a generalized parser for the output of 'ls'.
# It's job is to read the output of ls from the gawk source code directory,
-# where we know there are no symbolic links, nor are there files with
-# spaces in their file names, etc.
+# where we know there are no files with spaces in their file names, etc.
BEGIN {
# analyze results from readdir extension
while ((getline x < extout) > 0) {
@@ -32,7 +31,10 @@ BEGIN {
type_let = substr($0, 1, 1)
if (type_let == "-")
type_let = "f"
- type[$NF] = type_let
+ if (type_let == "l")
+ type[$(NF-2)] = type_let
+ else
+ type[$NF] = type_let
}
close(longlist)
-----------------------------------------------------------------------
Summary of changes:
test/ChangeLog | 6 ++++++
test/readdir0.awk | 8 +++++---
2 files changed, 11 insertions(+), 3 deletions(-)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gawk-diffs] [SCM] gawk branch, gawk-4.2-stable, updated. gawk-4.1.0-2964-g9f5ec4e,
Arnold Robbins <=