summaryrefslogtreecommitdiffstats
path: root/lldb/test/foundation/TestObjCMethods.py
Commit message (Collapse)AuthorAgeFilesLines
* Move global_variables dir to lang/c and foundation dir to lang/objc.Johnny Chen2011-06-251-255/+0
| | | | llvm-svn: 133883
* The extra burden for the Python API test case to assign its process object ↵Johnny Chen2011-06-151-3/+3
| | | | | | | | | to self.process in order to have its process cleaned up (terminated) upon tearDown is gone for good. Let's simplify a bunch of Python API test cases. llvm-svn: 133097
* Now that we have added a post-processing step for adding truth value testing toJohnny Chen2011-05-241-6/+6
| | | | | | | those lldb objects which implement the IsValid() method, let's change the rest of the test suite to use the more compact truth value testing pattern (the Python way). llvm-svn: 131970
* Change "frame var" over to using OptionGroups (and thus the ↵Jim Ingham2011-05-041-4/+4
| | | | | | | | | OptionGroupVariableObjectDisplay). Change the boolean "use_dynamic" over to a tri-state, no-dynamic, dynamic-w/o running target, and dynamic with running target. llvm-svn: 130832
* Change the rest of lldbutil.py's function names to all lower case formats to ↵Johnny Chen2011-04-271-2/+2
| | | | | | | | be consistent. And modify the test cases accordingly. llvm-svn: 130314
* Moved the execution context that was in the Debugger intoGreg Clayton2011-04-121-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the CommandInterpreter where it was always being used. Make sure that Modules can track their object file offsets correctly to allow opening of sub object files (like the "__commpage" on darwin). Modified the Platforms to be able to launch processes. The first part of this move is the platform soon will become the entity that launches your program and when it does, it uses a new ProcessLaunchInfo class which encapsulates all process launching settings. This simplifies the internal APIs needed for launching. I want to slowly phase out process launching from the process classes, so for now we can still launch just as we used to, but eventually the platform is the object that should do the launching. Modified the Host::LaunchProcess in the MacOSX Host.mm to correctly be able to launch processes with all of the new eLaunchFlag settings. Modified any code that was manually launching processes to use the Host::LaunchProcess functions. Fixed an issue where lldb_private::Args had implicitly defined copy constructors that could do the wrong thing. This has now been fixed by adding an appropriate copy constructor and assignment operator. Make sure we don't add empty ModuleSP entries to a module list. Fixed the commpage module creation on MacOSX, but we still need to train the MacOSX dynamic loader to not get rid of it when it doesn't have an entry in the all image infos. Abstracted many more calls from in ProcessGDBRemote down into the GDBRemoteCommunicationClient subclass to make the classes cleaner and more efficient. Fixed the default iOS ARM register context to be correct and also added support for targets that don't support the qThreadStopInfo packet by selecting the current thread (only if needed) and then sending a stop reply packet. Debugserver can now start up with a --unix-socket (-u for short) and can then bind to port zero and send the port it bound to to a listening process on the other end. This allows the GDB remote platform to spawn new GDB server instances (debugserver) to allow platform debugging. llvm-svn: 129351
* Modify test scripts to accomodate SBTarget.Launch() API change.Johnny Chen2011-02-031-1/+1
| | | | llvm-svn: 124828
* Deprecated old forms of SBTarget::Launch. There is not just one and noGreg Clayton2011-01-231-1/+2
| | | | | | SWIG renaming done to work around deprecated APIs. llvm-svn: 124075
* Updated comment.Johnny Chen2011-01-031-1/+0
| | | | llvm-svn: 122767
* Fix one of the golden output of "frame variable -t *self" to be:Johnny Chen2010-12-151-1/+1
| | | | | | "(MyString) *self" llvm-svn: 121907
* Added a test for finding the correct values for ivars when a property causes ↵Jim Ingham2010-12-151-2/+60
| | | | | | | | the ivar offsets in the DWARF to be incorrect. llvm-svn: 121894
* Fixed the "expression" command object to use the ↵Greg Clayton2010-12-151-1/+1
| | | | | | | | | | | | | StackFrame::GetValueForExpressionPath() function and also hooked up better error reporting for when things fail. Fixed issues with trying to display children of pointers when none are supposed to be shown (no children for function pointers, and more like this). This was causing child value objects to be made that were correctly firing an assertion. llvm-svn: 121841
* Modified main.m and TestObjCMethods.py to unbreak the test/foundation directory.Johnny Chen2010-12-061-0/+12
| | | | llvm-svn: 121046
* Remove @skip decorators for fixed crashes.Johnny Chen2010-11-301-2/+0
| | | | llvm-svn: 120479
* Skipped two test cases due to seg fault while hadnling command:Johnny Chen2010-11-301-0/+2
| | | | | | | | | | Application Specific Information: HandleCommand(command = "expression self->str") radar:8711052 llvm-svn: 120431
* Run commands 'expression self->str' and 'expression self->date'.Johnny Chen2010-11-121-5/+2
| | | | | | They should not fail. llvm-svn: 118868
* Added a simple test for:Johnny Chen2010-11-111-0/+4
| | | | | | | rdar://problem/8651752 don't crash trying to ask clang how many children an empty record has llvm-svn: 118820
* Modify the command passed to command interpreter from 'expr' (which is an ↵Johnny Chen2010-10-191-6/+7
| | | | | | | | alias of 'expression') to 'expression' to avoid cases where 'expr' has been unaliased. llvm-svn: 116780
* Remove the @expectedFailure decorators, as rdar://problem/8542091 is ↵Johnny Chen2010-10-151-4/+3
| | | | | | | | supposed to be fixed. Also change the expected matching pattern of the 'expr -o -- my' output. llvm-svn: 116645
* Remove the @skip("Skip due to deadlock?") decorators. Change the command toJohnny Chen2010-10-151-3/+1
| | | | | | | | 'breakpoint delete 1' from 'breakpoint delete'. With 'breakpoint delete', the command interpreter was asking for a confirmation from the user, which there isn't any. llvm-svn: 116610
* This is an initial version of test driver enhanceent to be able to dump theJohnny Chen2010-10-151-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | session info after a test case failure, allowing more direct inspection of debugger session which leads to the test failure. For a simple usage scenario: [18:06:26] johnny:/Volumes/data/lldb/svn/trunk/test $ ./dotest.py -v . 2> ~/Developer/Log/lldbtest.log ... [18:14:43] johnny:/Volumes/data/lldb/svn/trunk/test $ ls -l .session-* -rw-r--r-- 1 johnny admin 1359 Oct 14 18:06 .session-TestArrayTypes.ArrayTypesTestCase.test_with_dwarf_and_run_command -rw-r--r-- 1 johnny admin 2054 Oct 14 18:07 .session-TestClassTypes.ClassTypesTestCase.test_with_dsym_and_expr_parser -rw-r--r-- 1 johnny admin 2055 Oct 14 18:07 .session-TestClassTypes.ClassTypesTestCase.test_with_dwarf_and_expr_parser -rw-r--r-- 1 johnny admin 1351 Oct 14 17:57 .session-TestClassTypes.ClassTypesTestCase.test_with_dwarf_and_run_command [18:14:51] johnny:/Volumes/data/lldb/svn/trunk/test $ The test case which failed will have its recorded session info dumped to a .session-* file in the current working directory. For test suite using relocated directory, expect to find the .session-* files there. In this checkin, I also add @skip decorator to the two test methods in test/foundation/TestObjCMethods.py as it looks like the test suite is deadlocking when running the tests. More investigations are needed. llvm-svn: 116552
* Make calling the super class's setUp() method less fragile.Johnny Chen2010-10-141-1/+2
| | | | llvm-svn: 116490
* Apply (query-replace "frame variable" "frame variable -t") and fix a comment ↵Johnny Chen2010-10-131-4/+4
| | | | | | | | about 'expr var', not 'frame variable var'. llvm-svn: 116419
* Update the @expectedFailure decorator with additional bug info:Johnny Chen2010-10-121-18/+48
| | | | | | | | | | rdar://problem/8542091 test/foundation: expr -o -- my not working? Add an additional test for 'frame variable *self' when stopped in '-[MyString initWithNSString:]' and move the 'expr -o -- self' to after MyString has been constructed and change it to 'expr -o -- my'. llvm-svn: 116337
* The 'regexp-break' command now prints out the command that results fromJohnny Chen2010-10-121-2/+2
| | | | | | | | | | | | | | expanding the regular expression command. So change the more stringent: self.expect(..., startstr = matching_string) to: self.expect(..., substrs = [matched_string]) to pass the test. llvm-svn: 116331
* I committed too fast. Both "struct objc_selector *" and "SEL" are possible,Johnny Chen2010-10-011-2/+3
| | | | | | depending on the compiler used. Former if gcc/llvm-gcc, and latter if clang. llvm-svn: 115380
* Updated the expected match string when stopped on an objc instance method from:Johnny Chen2010-10-011-1/+1
| | | | | | | | | | | | ARG: (struct objc_selector *) _cmd to ARG: (SEL) _cmd The change most likely resulted from an update from the llvm tot with a newer clang. llvm-svn: 115372
* Test new feature with r115115:Johnny Chen2010-09-301-0/+6
| | | | | | Add "-o" option to "expression" which prints the object description if available. llvm-svn: 115182
* Updated the comment section for running 'expr self->string' and 'expr ↵Johnny Chen2010-09-291-2/+5
| | | | | | | | | | | | self->date'. The failures are similar in nature to the radar already filed: # rdar://problem/8492646 # test/foundation fails after updating to tot r115023 # self->str displays nothing as output llvm-svn: 115052
* Added two @expectedFailure decorators for ↵Johnny Chen2010-09-291-0/+7
| | | | | | | | | | | test_data_type_and_expr_with_dsym() and test_data_type_and_expr_with_dwarf(). rdar://problem/8492646 test/foundation fails after updating to tot r115023: self->str displays nothing as output llvm-svn: 115050
* Updated to reflect the updated tot r115023. Will be filing a bug next.Johnny Chen2010-09-291-4/+4
| | | | llvm-svn: 115046
* Removed the @expectedFailure decorators; it was fixed with r114258.Johnny Chen2010-09-191-2/+0
| | | | llvm-svn: 114305
* Fixed a typo and supplied a more appropriate assert message.Johnny Chen2010-09-171-1/+1
| | | | llvm-svn: 114232
* Added test cases to FoundationTestCase to exercise lookup of objc data types andJohnny Chen2010-09-171-1/+66
| | | | | | | | | | | | to evaluate expressions. Marked with @expectedFailure decorators for the time being. Enhanced the lldbtest.TestBase.expect() API to allow an additional keyword arg named "error". If the client passes "error=True", it signifies that an error while running the command is expected. The golden input is then compared against the return object's error output. llvm-svn: 114228
* Changed test case method names.Johnny Chen2010-09-171-3/+3
| | | | llvm-svn: 114210
* Added extra test scenarios to break on a selector with:Johnny Chen2010-09-161-4/+24
| | | | | | | | | | (lldb) breakpoint set -S description and a compilation unit defined instance method with: (lldb) breakpoint set -n '-[MyString initWithNSString:]' llvm-svn: 114134
* Fixed wrong doc strings from cut-and-paste.Johnny Chen2010-09-161-2/+2
| | | | llvm-svn: 114120
* Added a simple test case to set breakpoints on objc class/instance methods.Johnny Chen2010-09-161-0/+53
Modified Makefile.rules to allow for overwriting the ARCH make variable. llvm-svn: 114118
OpenPOWER on IntegriCloud