aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-05-21 14:36:12 +0300
committerArnold D. Robbins <arnold@skeeve.com>2015-05-21 14:36:12 +0300
commitc9a018c38fa4ff9abf4976398921f315be37b881 (patch)
tree98c2085b33a691899739fbd28de4c22f3e12e3f0
parent7100f51d8cfa0e7adab3fd40fdb9d29fdd8ad8ca (diff)
downloadegawk-c9a018c38fa4ff9abf4976398921f315be37b881.tar.gz
egawk-c9a018c38fa4ff9abf4976398921f315be37b881.tar.bz2
egawk-c9a018c38fa4ff9abf4976398921f315be37b881.zip
Fix fts test to not include atime.
-rw-r--r--test/ChangeLog5
-rw-r--r--test/fts.awk20
2 files changed, 19 insertions, 6 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index 738c1af7..be92aac9 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,8 @@
+2015-05-21 Arnold D. Robbins <arnold@skeeve.com>
+
+ * fts.awk: Really remove atime from the output.
+ This avoids spurious failures on heavily loaded systems.
+
2015-05-19 Arnold D. Robbins <arnold@skeeve.com>
* 4.1.3: Release tar ball made.
diff --git a/test/fts.awk b/test/fts.awk
index b1df0600..dea5b684 100644
--- a/test/fts.awk
+++ b/test/fts.awk
@@ -50,6 +50,11 @@ function sort_traverse(data, sorted, i)
{
asorti(data, sorted)
for (i = 1; i in sorted; i++) {
+ # 5/2015: skip for atime, since there can
+ # occasionally be small differences.
+ if (sorted[i] == "atime")
+ continue
+
indent()
printf("%s --> %s\n", sorted[i], data[sorted[i]]) > output
}
@@ -63,17 +68,20 @@ function traverse(data, i)
printf("%s:\n", i) > output
Level++
- if (("mtime" in data[i]) && ! isarray(data[i][mtime])) {
+ if (("mtime" in data[i]) && ! isarray(data[i]["mtime"])) {
sort_traverse(data[i])
} else {
traverse(data[i])
}
Level--
- } else if (data[i] != "atime") {
- # 4/2015: skip for atime, since there can
- # occasionally be small differences.
- indent()
- printf("%s --> %s\n", i, data[i]) > output
+# } else {
+# JUNK = 1
+# if (i != "atime") {
+# # 4/2015: skip for atime, since there can
+# # occasionally be small differences.
+# indent()
+# printf("%s --> %s\n", i, data[i]) > output
+# }
}
}
}