Alp Toker 7638179115 lit: Provide file location in cfg error messages
Python doesn't do a good job at diagnosing string exec() so use execfile()
where available.

This should be a timesaver when trying to get to the bottom of build bot
failures.

Before:

    File "llvm/utils/lit/lit/TestingConfig.py", line 93, in load_from_path
      exec("exec data in cfg_globals")
    File "<string>", line 1, in <module>
    File "<string>", line 194, in <module>
  NameError: name 'typo' is not defined

After:

    File "llvm/utils/lit/lit/TestingConfig.py", line 95, in load_from_path
    execfile(path, cfg_globals)
    File "clang/test/lit.cfg", line 194, in <module>
      typo
      ^~~~
  NameError: name 'typo' is not defined

llvm-svn: 198766
2014-01-08 14:20:59 +00:00
..
2013-11-15 01:34:59 +00:00
2013-11-15 01:34:59 +00:00
2012-12-11 00:23:07 +00:00
2013-12-03 07:34:19 +00:00
2013-11-15 01:34:59 +00:00
2013-01-02 09:10:48 +00:00
2013-01-28 22:05:50 +00:00
2012-01-26 22:06:23 +00:00
2013-04-05 20:00:35 +00:00
2012-11-17 06:38:44 +00:00