From 00285baf1f3dbdbfc3a5e84c15c528a239eb15b1 Mon Sep 17 00:00:00 2001 From: bdbaddog Date: Thu, 25 Sep 2008 21:30:54 +0000 Subject: [PATCH] Sort the results of unittest for RC scanner before comparing them. git-svn-id: http://scons.tigris.org/svn/scons/trunk@3479 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- src/engine/SCons/Scanner/RCTests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/engine/SCons/Scanner/RCTests.py b/src/engine/SCons/Scanner/RCTests.py index 0101742a..61dbfb15 100644 --- a/src/engine/SCons/Scanner/RCTests.py +++ b/src/engine/SCons/Scanner/RCTests.py @@ -111,6 +111,8 @@ if os.path.normcase('foo') == os.path.normcase('FOO'): def deps_match(self, deps, headers): scanned = map(my_normpath, map(str, deps)) expect = map(my_normpath, headers) + scanned.sort() + expect.sort() self.failUnless(scanned == expect, "expect %s != scanned %s" % (expect, scanned)) # define some tests: -- 2.26.2