From: bdbaddog Date: Thu, 25 Sep 2008 21:30:54 +0000 (+0000) Subject: Sort the results of unittest for RC scanner before comparing them. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=00285baf1f3dbdbfc3a5e84c15c528a239eb15b1;p=scons.git 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 --- 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: