diff options
author | Todd Fiala <todd.fiala@gmail.com> | 2014-07-08 16:29:54 +0000 |
---|---|---|
committer | Todd Fiala <todd.fiala@gmail.com> | 2014-07-08 16:29:54 +0000 |
commit | 9189e034f172b2c9280046de2d10c2d9e209f16f (patch) | |
tree | ee9090dd6f290bd945b7a52c1d95f7ddda891c59 | |
parent | 862d8b8d06fb155378530ba26a73574f73134f26 (diff) | |
download | bcm5719-llvm-9189e034f172b2c9280046de2d10c2d9e209f16f.tar.gz bcm5719-llvm-9189e034f172b2c9280046de2d10c2d9e209f16f.zip |
Remove hack from dotest.py to fix extra output on -P command, and fix MacOSX multi-threaded test run collisions on crashlog.dylib.
On MacOSX, we need to adjust the way we clean up the crashlog dylib in deleteCrashInfoDylib().
Right now it is only geared to run one test at a time. For now I'm just skipping the delete.
I'll work with Apple on a fix that handles this. It seems to only cause one dylib total to
hang around that might otherwise have been deleted. Fixes MacOSX multiple tests running
at the same time. (I didn't hit this on Yosemite, might be an issue that only shows up
on Mavericks?)
llvm-svn: 212548
-rwxr-xr-x | lldb/test/dotest.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lldb/test/dotest.py b/lldb/test/dotest.py index 05e11111338..e600d2cec1d 100755 --- a/lldb/test/dotest.py +++ b/lldb/test/dotest.py @@ -399,7 +399,10 @@ setCrashInfoHook = None def deleteCrashInfoDylib(dylib_path): try: - os.remove(dylib_path) + # Need to modify this to handle multiple tests running at the same time. If we move this + # to the test's real dir, all should be we run sequentially within a test directory. + # os.remove(dylib_path) + None finally: pass @@ -1010,9 +1013,8 @@ def setupSysPath(): if lldb_dash_p_result and not lldb_dash_p_result.startswith(("<", "lldb: invalid option:")): lines = lldb_dash_p_result.splitlines() - # Assume the last line of output is the path. Generally there should only be one. - if os.path.isfile(os.path.join(lines[-1], init_in_python_dir)): - lldbPath = lines[-1] + if len(lines) == 1 and os.path.isfile(os.path.join(lines[0], init_in_python_dir)): + lldbPath = lines[0] if "freebsd" in sys.platform or "linux" in sys.platform: os.environ['LLDB_LIB_DIR'] = os.path.join(lldbPath, '..', '..') |