[lit] Fix Analysis test format pickling error
authorReid Kleckner <rnk@google.com>
Wed, 5 Apr 2017 18:56:48 +0000 (18:56 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 5 Apr 2017 18:56:48 +0000 (18:56 +0000)
commit2ae37c15c3fdd202deef5fa3b2fd0da4ecc6c7d8
treebc95abf7fddb4f5893eab0a968de9faf78a64005
parent02185c04b2334d962c2a8918c16cf3d5182c5fbb
[lit] Fix Analysis test format pickling error

Move the test format into a standalone .py file and add it to the site
module search path. This allows us to run the test on Windows, and it
makes it compatible with the multiprocessing.Pool lit test execution
strategy.

I think this test was only passing everywhere else because
multiprocessing uses 'fork' to spawn workers, so the test format never
needs to be pickled.

llvm-svn: 299577
clang/test/Analysis/analyzer_test.py [new file with mode: 0644]
clang/test/Analysis/lit.local.cfg