summaryrefslogtreecommitdiffstats
path: root/lldb/test
Commit message (Collapse)AuthorAgeFilesLines
...
* XFAILing a single test in TestConcurrentEventsPavel Labath2015-04-221-0/+1
| | | | | | | apparently, TestConcurrentEvents is still not fixed. One test has failed on Linux i386 build. Will disable the failing test on i386 for now, and see how it goes.. llvm-svn: 235504
* Enable TestConcurrentEvents on LinuxPavel Labath2015-04-221-16/+0
| | | | | | | After the latest changes in NativeProcessLinux, these tests should be stable now. Please revert (and let me know) if any issue crops up. llvm-svn: 235502
* XFAIL tests that are failed on linux with gcc-4.9.2Ying Chen2015-04-219-1/+72
| | | | | | | | | | | | | | | | | | | Summary: - add decorator functions to xfail and skip test on specific os, architecture and version of comipler - xfail failing test with gcc-4.9.2 on linux - add one usage of skipIf function Test Plan: Run tests with different archs, and version of compilers to verify decorator function working as expected Run tests with gcc-4.9.2 and no failure reported Reviewers: sivachandra, ovyalov, vharron, chaoren Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D8851 llvm-svn: 235368
* Add Makefile for typedef_arrayYing Chen2015-04-201-0/+4
| | | | | | | | | | | | | | | | -Makefile was deleted by r235313 causing test failure of TestTypedefArray.py, add it back Summary: -Makefile was deleted by r235313 causing test failure of TestTypedefArray.py, add it back Test Plan: Run lldb test locally with change, TestTypedefArray.py passed and no regression observed. Reviewers: chaoren, sivachandra, vharron Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D9119 llvm-svn: 235346
* Allow specifying tool path/prefix for tests with CROSS_COMPILE.Robert Flack2015-04-201-3/+5
| | | | | | | | | | | | | | | CROSS_COMPILE environment variable is a common convention to specify the path and/or prefix to cross compilation tools (e.g. ar, objcopy). Test Plan: dotest.py $DOTEST_OPTS -t -p 'TestBSDArchives.py|TestBreakpointCommandsFromPython.py|TestFormats.py|TestObjCDynamicValue.py' All of these tests now compile successfully and pass running macosx -> linux using a cross compilation toolchain prefixed by CROSS_COMPILE without requiring changing your PATH. They still pass when run locally on macosx. Differential Revision: http://reviews.llvm.org/D9072 llvm-svn: 235320
* This patch implements several improvements to theSean Callanan2015-04-206-4/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | module-loading support for the expression parser. - It adds support for auto-loading modules referred to by a compile unit. These references are currently in the form of empty translation units. This functionality is gated by the setting target.auto-import-clang-modules (boolean) = false - It improves and corrects support for loading macros from modules, currently by textually pasting all #defines into the user's expression. The improvements center around including only those modules that are relevant to the current context - hand-loaded modules and the modules that are imported from the current compile unit. - It adds an "opt-in" mechanism for all of this functionality. Modules have to be explicitly imported (via @import) or auto-loaded (by enabling the above setting) to enable any of this functionality. It also adds support to the compile unit and symbol file code to deal with empty translation units that indicate module imports, and plumbs this through to the CompileUnit interface. Finally, it makes the following changes to the test suite: - It adds a testcase that verifies that modules are automatically loaded when the appropriate setting is enabled (lang/objc/modules-auto-import); and - It modifies lanb/objc/modules-incomplete to test the case where a module #undefs something that is #defined in another module. <rdar://problem/20299554> llvm-svn: 235313
* NativeProcessLinux: Merge operation and monitor threadsPavel Labath2015-04-201-1/+0
| | | | | | | | | | | | | | | | | Summary: This commit moves the functionality of the operation thread into the new monitor thread. This is required to avoid a kernel race between the two threads and I believe it actually makes the code cleaner. Test Plan: Ran the test suite a couple of times, no regressions. Reviewers: ovyalov, tberghammer, vharron Subscribers: tberghammer, lldb-commits Differential Revision: http://reviews.llvm.org/D9080 llvm-svn: 235304
* TestMiBreak - func isn't always ??.Chaoren Lin2015-04-171-1/+1
| | | | | | | | | | | | Summary: Caused a failure because it showed up as `__printf`. Reviewers: ki.stfu Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D9060 llvm-svn: 235214
* Fix the MiVarTestCase.test_lldbmi_var_create_register test to expect 32bit ↵Ilia K2015-04-171-1/+2
| | | | | | value on 32bit systems llvm-svn: 235204
* Fix the MiVarTestCase.test_lldbmi_var_create_register test on 32bit systemsIlia K2015-04-171-1/+4
| | | | llvm-svn: 235197
* MI support for '-var-create $regname' command.Ilia K2015-04-171-0/+36
| | | | | | | | | | | | | | | | | | Summary: This command is currently processed using expression evaluation, meaning the variable binds to the result of the expression not the register. Therefore any subsequent calls to '-var-assign' will not update the register. Fixed by detecting '$' prefix for registers according to specification. Thanks, Ewan Patch from ewan@codeplay.com Reviewers: EwanCrawford Subscribers: lldb-commits, deepak2427 Differential Revision: http://reviews.llvm.org/D8965 llvm-svn: 235195
* Use lazy regex in lldb-mi testsIlia K2015-04-1711-71/+72
| | | | | | This patch also fixes the timing issue in MiBreakTestCase.test_lldbmi_break_insert_function test. llvm-svn: 235189
* Make several test case arm32 compatibleTamas Berghammer2015-04-174-3/+9
| | | | llvm-svn: 235172
* XFAILing TestPrintStackTraces on linux to stabilize the build botPavel Labath2015-04-171-6/+4
| | | | llvm-svn: 235169
* Uses the target platform to determine the platform context.Robert Flack2015-04-172-12/+11
| | | | | | | | | | | | | | | Uses the target platform to determine the platform context to use. This fixes an early failure in some tests when running on a different remote target. Test Plan: ./dotest.py $DOTEST_OPTS -t -p TestGlobalVariables.py|TestSharedLib.py Running on macosx -> linux, this fails at a later stage in the test - rather than in registerSharedLibrariesWithTarget looking for a library without the correct "lib" prefix and ".so" suffix. Differential Revision: http://reviews.llvm.org/D9047 llvm-svn: 235164
* Fix a bug where argdumper would not launch inferiors correctly in the ↵Enrico Granata2015-04-171-0/+21
| | | | | | | | presence of arguments of the form word1\ word2 (vs. the quoted form "word1 word2") Fixes rdar://20493444 llvm-svn: 235157
* Fix TestPluginCommands for gcc.Chaoren Lin2015-04-162-3/+2
| | | | | | | | | | | | | | | | Summary: gcc requires that LDFLAGS come after DYLIB_OBJECTS. Test Plan: TestPluginCommands passes. Reviewers: sivachandra, pcc, clayborg Reviewed By: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D9045 llvm-svn: 235137
* XFAIL a test in TestGdbRemoteRegisterState.py on linux to stabilize build botPavel Labath2015-04-161-0/+1
| | | | llvm-svn: 235100
* XFAILing TestGdbRemoteAttach to stabilise linux build botPavel Labath2015-04-161-61/+1
| | | | | | | also, deleting what appears to be a concatenation of a file with itself (How that compiled in the first place?). llvm-svn: 235093
* Append to CFLAGS_EXTRAS and LD_EXTRAS when building cmdline.Robert Flack2015-04-161-1/+7
| | | | | | | | | | | | | | When building the command-line for compilations during tests, append to CFLAGS_EXTRAS and LD_EXTRAS to preserve switches set by the environment (i.e. for cross compiling to test on another platform). Test Plan: TestCPP11EnumTypes.py passes testing from macosx -> linux remotely with cross compiling args in CFLAGS_EXTRAS and LD_EXTRAS. Differential Revision: http://reviews.llvm.org/D8942 llvm-svn: 235083
* Make -arch work on MacOSX.Greg Clayton2015-04-161-3/+11
| | | | llvm-svn: 235065
* Fix OS default in Makefile.rules for Windows. http://reviews.llvm.org/D9043Adrian McCarthy2015-04-151-5/+15
| | | | llvm-svn: 235056
* [TestRvalueReferences] Fix an expectation.Siva Chandra2015-04-151-3/+1
| | | | | | | | | | | | | | | | | | | | Summary: If 'i' is an rvalue reference to an 'int', evaluating it with the 'expression' command will return an 'int' value and not an 'int &&'. Before this patch, an 'int &&' type was expected. Enabled the test for clang and gcc as all parts of the test now pass when the testcase is compiled with them. Test Plan: dotest.py -C <gcc|clang> -p TestRvalueReferences Reviewers: spyffe, chaoren Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D9005 llvm-svn: 235036
* [TestMiBreak] Print a formatted string via printf in the test case.Siva Chandra2015-04-152-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Summary: If the string is not formatted, these can happen when compiled with GCC: 1. If it is a null string "", then GCC completely removes the call to printf even with -O0. 2. If the string is a single character string, say "\n" for example, then GCC replaces the call to printf with a call to putchar. 3. If the string length is greater than 1, but is not formatted, then GCC replaces the call to printf with a call to puts. All the above will fail the test as we want a breakpoint on "printf" to hit. Test Plan: dotest.py -C gcc -p TestMiBreak Reviewers: chying, ki.stfu Reviewed By: ki.stfu Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D9025 llvm-svn: 235034
* Improve MiBreakTestCase tests to expect =breakpoint-modified event after r234483Ilia K2015-04-151-3/+22
| | | | llvm-svn: 235016
* Fix the ConvenienceVariablesCase tests after r234993Ilia K2015-04-151-4/+1
| | | | llvm-svn: 235010
* Bug 23051 - Fix zombie processes after lldb-server testsIlia K2015-04-158-9/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This patch fixes the following bug: https://llvm.org/bugs/show_bug.cgi?id=23181 For some reason some lldb-server tests should be kicked using SIGHUP and SIGINT before termination, otherwise it will leave a zombie process. I think the reason is that the lldb-server will terminate a slave process if it gets the SIGHUP/SIGINT and if so it should be fixed in lldb-server. The solution is to terminate process like it does the pexpect (including the delayafterterminate interval). Also this patch reverts the following commits: * r234549 - Skip lldb-server tests according to bug 23181 * r234765 - Skip a few tests on OS X according to the bug 23181 * r234803 - Skip the TestGdbRemoteRegisterState.test_grp_register_save_restore_works_no_suffix_debugserver_dsym test on OS X according to the bug 23181 Test Plan: ``` $ ps | grep Z | grep a.out | wc -l 447 $ ./dosep.py --options "-v --executable $INSTALLDIR/bin/lldb" [...] $ ps | grep Z | grep a.out | wc -l 447 ``` Reviewers: jasonmolenda, clayborg, tberghammer Reviewed By: clayborg Subscribers: lldb-commits, dawn, tberghammer, clayborg, jasonmolenda Differential Revision: http://reviews.llvm.org/D9019 llvm-svn: 235008
* Add teardown hook to shutdown an inferior processIlia K2015-04-151-2/+9
| | | | | | | | | | | | | | Summary: Add teardown hook to shutdown an inferior process Reviewers: jasonmolenda, clayborg, tberghammer Reviewed By: clayborg, tberghammer Subscribers: lldb-commits, tberghammer, clayborg, jasonmolenda Differential Revision: http://reviews.llvm.org/D9018 llvm-svn: 235005
* Skip TestMiVar test case to get build greenPavel Labath2015-04-151-0/+1
| | | | | | bug report at <https://llvm.org/bugs/show_bug.cgi?id=23239>. llvm-svn: 235002
* Skip reverse connect test when running remotelyVince Harron2015-04-151-0/+1
| | | | | | | This use case is not supported and may be removed in the future if not needed llvm-svn: 234994
* TestConvenienceVariables - fixed a Linux problemVince Harron2015-04-151-1/+5
| | | | | | | | | Test was waiting for wrong string on Linux. It is still marked as XFAIL because of an intermittent failure. Differential Revision: http://reviews.llvm.org/D8679 llvm-svn: 234993
* Exception registers aren't supported outside of DarwinVince Harron2015-04-151-9/+16
| | | | | | | | Updated test to match Differential Revision: http://reviews.llvm.org/D8812 llvm-svn: 234992
* Fix test makefile after r234949.Tamas Berghammer2015-04-151-3/+3
| | | | | | | On non OSX architectures we don't need a space between the arch flag (-m) and the value. llvm-svn: 234985
* MacOSX needs a space between $(ARCHFLAG) and $(ARCH) otherwise we try to ↵Greg Clayton2015-04-141-2/+2
| | | | | | call clang with "-archx86_64" which doesn't work. llvm-svn: 234949
* Added support to ClangUserExpression for importingSean Callanan2015-04-141-0/+3
| | | | | | | | | | | | | all the macros from the modules the user has loaded. These macros are currently imported textually into the expression's source code, which turns out not to impose the horrific string processing overhead that I thought it would, but I still plan to look into performance improvements. Also modified TestCModules to test that this works. llvm-svn: 234922
* Updated IRForTarget to change the way we generateSean Callanan2015-04-141-2/+0
| | | | | | | | | | | | relocations. We used to do GEP on a pointer to the result type, which is wrong. We should be doing GEP on a pointer to char, which allows us to offset correctly. This fixes the C modules testcase, so it's no longer ExpectFail. llvm-svn: 234918
* Fix handling of the executable arg which contains spaces (MI)Ilia K2015-04-141-5/+5
| | | | | | | | | | | | | | * Don't use the CMICmdArgValFile::GetFileNamePath for the CMIDriver::m_strCmdLineArgExecuteableFileNamePath because it wraps path with spaces into quotes what is already being done in CMIDriver::LocalDebugSessionStartupExecuteCommands * Improve the MiSyntaxTestCase.test_lldbmi_specialchars test to catch this error ``` $ bin/lldb-mi "~/p/ hello" (gdb) -file-exec-and-symbols "\"~/p/ hello\"" ^error,msg="Command 'file-exec-and-symbols'. Target binary '\"~/p/ hello\"' is invalid. error: unable to find executable for '/"~/p/ hello/"'" ``` llvm-svn: 234888
* Simplify some lldb-mi tests by using the Base.addTearDownHook()Ilia K2015-04-142-57/+43
| | | | llvm-svn: 234885
* Remove gcc xfail for TestTargetWatchAddress.Chaoren Lin2015-04-141-1/+0
| | | | llvm-svn: 234828
* Remove gcc xfail for TestWatchpointMultipleThreads.Chaoren Lin2015-04-141-2/+0
| | | | llvm-svn: 234826
* [TestPluginCommands] Add skipIfGcc at the right place.Siva Chandra2015-04-141-1/+1
| | | | | | | | | | | | | | | | | | | Summary: The decorator @expectedFailureGcc was at the wrong place skipping this test all together. This patch removes it and adds skipIfGcc at the right place. Test Plan: dotest.py -C <gcc|clang> -p TestPluginCommands Reviewers: chying, chaoren Reviewed By: chaoren Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D9010 llvm-svn: 234821
* Skip the ↵Ilia K2015-04-131-0/+1
| | | | | | TestGdbRemoteRegisterState.test_grp_register_save_restore_works_no_suffix_debugserver_dsym test on OS X according to the bug 23181 llvm-svn: 234803
* Skip libc++ data formmatting tests on Windows. libc++ hasn't been ported to ↵Adrian McCarthy2015-04-138-0/+8
| | | | | | windows yet. llvm-svn: 234794
* Missing `-lpthread` causes gcc test failure.Chaoren Lin2015-04-134-24/+6
| | | | | | | | | | | | | | | Summary: `-lpthread` was removed for `g++ -std=c++11` on Linux due to llvm.org/pr21553, but the original issue doesn't seem to be reproducible anymore. Even if it were, it had nothing to do with compiling inferiors. Reviewers: sbest, sivachandra, chying Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D8991 llvm-svn: 234770
* Skip a few tests on OS X according to the bug 23181Ilia K2015-04-132-0/+2
| | | | llvm-svn: 234765
* [TestFormatters, TestDataFormatterSynthVal] Mark as xfail.Siva Chandra2015-04-102-0/+2
| | | | | | | | | | | | | | | | Summary: This is to get the bots to go green while a robust solution to fix these tests is worked out. Reviewers: chaoren, tberghammer, clayborg Reviewed By: tberghammer, clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D8947 llvm-svn: 234625
* [TestAnonymous] Enable all tests for GCCSiva Chandra2015-04-101-8/+5
| | | | | | | | | | | | | | | | | | Summary: Also added "_with_dsym" prefix to the dsym tests, and "_with_dwarf" to the dwarf tests. Test Plan: dotest.py -C gcc -p TestAnonymous Reviewers: chaoren Reviewed By: chaoren Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D8944 llvm-svn: 234624
* Check in missing file.Greg Clayton2015-04-101-0/+88
| | | | llvm-svn: 234609
* Fix a problem where 'process launch' was not correctly re-quoting arguments ↵Enrico Granata2015-04-102-0/+21
| | | | | | | | for the inferior process when handing them down for the actual launch This covers most of rdar://20490076, but leaves one corner case still open - namely the case where we try to have arguments of the form foo\ bar (unquoted, but slashed) go through argdumper llvm-svn: 234554
* Skip lldb-server tests according to bug 23181Ilia K2015-04-105-0/+6
| | | | llvm-svn: 234549
OpenPOWER on IntegriCloud