~vcs-imports/gawk/master

« back to all changes in this revision

Viewing changes to test/fts.awk

  • Committer: Arnold D. Robbins
  • Date: 2015-05-21 11:36:12 UTC
  • mto: (408.21.2) (731.1.8)
  • mto: This revision was merged to the branch mainline in revision 542.
  • Revision ID: git-v1:c9a018c38fa4ff9abf4976398921f315be37b881
Fix fts test to not include atime.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
{
51
51
        asorti(data, sorted)
52
52
        for (i = 1; i in sorted; i++) {
 
53
                # 5/2015: skip for atime, since there can
 
54
                # occasionally be small differences.
 
55
                if (sorted[i] == "atime")
 
56
                        continue
 
57
 
53
58
                indent()
54
59
                printf("%s --> %s\n", sorted[i], data[sorted[i]]) > output
55
60
        }
63
68
                        printf("%s:\n", i) > output
64
69
 
65
70
                        Level++
66
 
                        if (("mtime" in data[i]) && ! isarray(data[i][mtime])) {
 
71
                        if (("mtime" in data[i]) && ! isarray(data[i]["mtime"])) {
67
72
                                sort_traverse(data[i])
68
73
                        } else {
69
74
                                traverse(data[i])
70
75
                        }
71
76
                        Level--
72
 
                } else if (data[i] != "atime") {
73
 
                        # 4/2015: skip for atime, since there can
74
 
                        # occasionally be small differences.
75
 
                        indent()
76
 
                        printf("%s --> %s\n", i, data[i]) > output
 
77
#               } else {
 
78
#                       JUNK = 1
 
79
#                       if (i != "atime") {
 
80
#                               # 4/2015: skip for atime, since there can
 
81
#                               # occasionally be small differences.
 
82
#                               indent()
 
83
#                               printf("%s --> %s\n", i, data[i]) > output
 
84
#                       }
77
85
                }
78
86
        }
79
87
}