llvm-project/lldb/test
Ilia K 3b0494c304 MI fix allowing multiple logging instances of lldb-mi to run simultaneously.
Summary:
Currently if two instances of lldb-mi are running with logging enabled using '--log' the log file conflicts. This produces the following error 
MI: Error: File Handler. Error Permission denied opening 'C:\Users\Ewan\LLVM\build\Debug\bin\lldb-mi-log.txt'

Fixed in this patch by renaming lldb-mi-log.txt based on the date, e.g. lldb-mi-log.txt-20150316163631.log, and moving the file into the temp directory by using the --log-dir option.

Regrading previous review comments the P_tmpdir macro is defined in Windows but always points to "\", which doesn't help much. Also when using the Windows API for GetTempPath() dynamic memory seems much more messy.

Patch from ewan@codeplay.com

Reviewers: abidh, EwanCrawford

Subscribers: zturner, lldb-commits, deepak2427

Differential Revision: http://reviews.llvm.org/D9054

llvm-svn: 235589
2015-04-23 12:48:42 +00:00
..
api XFAIL tests that are failed on linux with gcc-4.9.2 2015-04-21 01:15:47 +00:00
arm_emulation Massive test suite cleanup to stop everyone from manually having to compute "mydir" inside each test case. 2013-12-10 23:19:29 +00:00
attic Initial commit of a new testsuite feature: test categories. 2012-09-21 19:10:53 +00:00
benchmarks Replace sys.platform skips in tests with @skip decorators which check against remote platform. 2015-03-30 14:12:17 +00:00
driver/batch_mode Replace sys.platform skips in tests with @skip decorators which check against remote platform. 2015-03-30 14:12:17 +00:00
example Initial commit of a new testsuite feature: test categories. 2012-09-21 19:10:53 +00:00
expression_command XFAIL tests that are failed on linux with gcc-4.9.2 2015-04-21 01:15:47 +00:00
functionalities Fix test expectation in TestNoreturnUnwind 2015-04-23 10:54:27 +00:00
help Fix help test cases after r226068 2015-01-20 15:13:01 +00:00
lang This patch implements several improvements to the 2015-04-20 16:31:29 +00:00
linux/builtin_trap Replace sys.platform skips in tests with @skip decorators which check against remote platform. 2015-03-30 14:12:17 +00:00
logging Replace sys.platform skips in tests with @skip decorators which check against remote platform. 2015-03-30 14:12:17 +00:00
macosx Replace sys.platform skips in tests with @skip decorators which check against remote platform. 2015-03-30 14:12:17 +00:00
make Allow specifying tool path/prefix for tests with CROSS_COMPILE. 2015-04-20 18:07:55 +00:00
pexpect-2.4 Eliminate kernel warning when running tests on FreeBSD 2014-02-18 21:33:10 +00:00
plugins Append to CFLAGS_EXTRAS and LD_EXTRAS when building cmdline. 2015-04-16 09:18:12 +00:00
python_api XFAILing TestPrintStackTraces on linux to stabilize the build bot 2015-04-17 09:05:26 +00:00
settings Make several test case arm32 compatible 2015-04-17 09:37:06 +00:00
source-manager During source manager test, write back the file using binary mode. 2015-01-15 22:53:44 +00:00
terminal Many many test failures after some recent changes. The problem is lldbtest.getPlatform() returns the "OS" of the selected platform's triple. This is "macosx" for desktop macosx and "ios" for iOS. It used to be "darwin". 2015-04-02 18:24:03 +00:00
tools MI fix allowing multiple logging instances of lldb-mi to run simultaneously. 2015-04-23 12:48:42 +00:00
types Fix resolution of certain recursive types. 2015-04-08 21:52:45 +00:00
unittest2 Added a simple legend to the unit test 'dots' output, to aid understandability. 2013-09-25 20:47:51 +00:00
warnings/uuid Replace sys.platform skips in tests with @skip decorators which check against remote platform. 2015-03-30 14:12:17 +00:00
.categories Initial commit of a new testsuite feature: test categories. 2012-09-21 19:10:53 +00:00
CMakeLists.txt Add a method to disable the Windows crash / assert dialogs. 2014-12-12 18:10:52 +00:00
Makefile Revert test/Makefile to state before r232205 2015-03-13 22:33:42 +00:00
README-TestSuite Comment discouraging writing command based test cases. 2015-03-18 23:16:58 +00:00
argparse_compat.py Include a small argparse compatibility layer for Python < 2.7 2013-02-16 09:05:23 +00:00
bench-history
bench.py
blacklist.py
crashinfo.c Alignment fix 2014-01-08 03:14:18 +00:00
dosep.py Dont' use close_fds = True on Windows. 2015-02-07 00:14:55 +00:00
dotest.py Fix @skipUnlessPlatform and @skipIfPlatform decorators to work on classes. 2015-04-09 18:07:58 +00:00
lldbbench.py
lldbinline.py Replace sys.platform skips in tests with @skip decorators which check against remote platform. 2015-03-30 14:12:17 +00:00
lldbpexpect.py Add an expectall() API that allows you to pass a list of patterns and have pexpect match *ALL* of them instead of just picking one 2015-02-03 03:11:59 +00:00
lldbplatformutil.py Make several test case arm32 compatible 2015-04-17 09:37:06 +00:00
lldbtest.py XFAIL tests that are failed on linux with gcc-4.9.2 2015-04-21 01:15:47 +00:00
lldbutil.py Print the new eStopReasonExec in stop_reason_to_str. 2014-04-03 01:25:28 +00:00
progress.py The new progress bar mode was losing us information compared to the old dots mode in that we would have no way of knowing about test failures (short of peeking into the test result directory.. and you're not supposed to peek!) 2013-02-09 00:37:07 +00:00
redo.py The new ReadStringFromMemory() API does not work correctly with NSStrings that have an explicit length and no NULL terminator 2013-04-23 20:05:05 +00:00