From d18ec35af8f69e72588994ed12760771c3e0b78f Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" <esr@thyrsus.com> Date: Mon, 26 Jan 2015 17:30:20 -0500 Subject: Guarantee that subdirectory files are processed in sortedorder. Without this change the regression tests are unstable. --- deheader | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deheader b/deheader index b0922a4..6c0d729 100755 --- a/deheader +++ b/deheader @@ -1249,6 +1249,7 @@ class InclusionMap: else: print >>sys.stderr, "deheader: can't analyze %s" % root else: + sublist = [] for root, dirs, files in os.walk(root): dirs = filter(lambda x: not x.startswith("."), dirs) for name in files: @@ -1257,7 +1258,9 @@ class InclusionMap: if verbose > 1: print "deheader: %s excluded" % root elif InclusionMap.c_source(path): - self.files.append(path) + sublist.append(path) + sublist.sort() + self.files += sublist self.depends_on = {} self.requires = {} for sourcefile in self.files: -- cgit v1.2.3-70-g09d2