aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/gawk-fts-test.patch
blob: de1f5c431cf61ffadd94806c4702441a50a9dcd9 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
This is upstream commit c9a018c.  We have observed random failures of
this test on i686 that seem related to load.

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.

diff --git a/test/fts.awk b/test/fts.awk
index b1df060..dea5b68 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
+#			}
 		}
 	}
 }
ibility handling....Ludovic Courtès 2015-06-04gnu: gawk: Update to 4.1.3....Ludovic Courtès 2015-02-27gnu: Remove now unneeded 'localedef' invocations....Ludovic Courtès 2015-01-09build-system/gnu: Patch /usr/bin/file in all 'configure' files....Ludovic Courtès 2015-01-06gnu: gawk: Fix target-system check....Mark H Weaver 2014-11-26gnu: gawk: Build a UTF-8 locale for the tests....Ludovic Courtès 2014-09-13Merge branch 'master' into core-updates...Mark H Weaver 2014-09-13gnu: Adjust synopses as recommended by 'guix lint'....Ludovic Courtès 2014-09-13gnu: Synchronize GNU package descriptions with upstream....Ludovic Courtès 2014-08-29gnu: gawk: Patch /usr/bin/file in extension/configure on MIPS....Mark H Weaver 2014-08-23gnu: Rely on 'file' implicit input and 'patch-usr-bin-file'....Mark H Weaver 2014-08-21Revert "gnu: Add 'file' as a native-input on MIPS for some packages."...Mark H Weaver 2014-08-20gnu: Add 'file' as a native-input on MIPS for some packages....Mark H Weaver 2014-06-18gnu: gawk: Apply work around to build system for MIPS....Mark H Weaver 2014-04-14gnu: gawk: Upgrade to 4.1.1....Ludovic Courtès 2013-12-01gnu: Synchronize descriptions with 'gnumaint'.Ludovic Courtès 2013-10-09Synchronize package descriptions with the Womb....Ludovic Courtès