summaryrefslogtreecommitdiffstats
path: root/lldb
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2013-12-10 23:19:29 +0000
committerGreg Clayton <gclayton@apple.com>2013-12-10 23:19:29 +0000
commit4570d3eba0db0e322115964257f36a086d89edcb (patch)
treefb45581bcbcca8498dafa485def3d4e85383307a /lldb
parent88b6898085e8b7d5a577eb0cfb16bf489842324c (diff)
downloadbcm5719-llvm-4570d3eba0db0e322115964257f36a086d89edcb.tar.gz
bcm5719-llvm-4570d3eba0db0e322115964257f36a086d89edcb.zip
Massive test suite cleanup to stop everyone from manually having to compute "mydir" inside each test case.
This has led to many test suite failures because of copy and paste where new test cases were based off of other test cases and the "mydir" variable wasn't updated. Now you can call your superclasses "compute_mydir()" function with "__file__" as the sole argument and the relative path will be computed for you. llvm-svn: 196985
Diffstat (limited to 'lldb')
-rw-r--r--lldb/test/api/check_public_api_headers/TestPublicAPIHeaders.py2
-rw-r--r--lldb/test/api/multithreaded/TestMultithreaded.py2
-rw-r--r--lldb/test/arm_emulation/TestEmulations.py2
-rw-r--r--lldb/test/benchmarks/disassembly/TestDisassembly.py2
-rw-r--r--lldb/test/benchmarks/disassembly/TestDoAttachThenDisassembly.py2
-rw-r--r--lldb/test/benchmarks/disassembly/TestXcode41Vs42GDBDisassembly.py2
-rw-r--r--lldb/test/benchmarks/expression/TestExpressionCmd.py2
-rw-r--r--lldb/test/benchmarks/expression/TestRepeatedExprs.py2
-rw-r--r--lldb/test/benchmarks/frame_variable/TestFrameVariableResponse.py2
-rw-r--r--lldb/test/benchmarks/startup/TestStartupDelays.py2
-rw-r--r--lldb/test/benchmarks/stepping/TestRunHooksThenSteppings.py2
-rw-r--r--lldb/test/benchmarks/stepping/TestSteppingSpeed.py2
-rw-r--r--lldb/test/benchmarks/turnaround/TestCompileRunToBreakpointTurnaround.py2
-rw-r--r--lldb/test/expression_command/call-function/TestCallStdStringFunction.py2
-rw-r--r--lldb/test/expression_command/call-restarts/TestCallThatRestarts.py2
-rw-r--r--lldb/test/expression_command/call-throws/TestCallThatThrows.py2
-rw-r--r--lldb/test/expression_command/formatters/TestFormatters.py2
-rw-r--r--lldb/test/expression_command/issue_11588/Test11588.py2
-rw-r--r--lldb/test/expression_command/persistent_types/TestPersistentTypes.py2
-rw-r--r--lldb/test/expression_command/persistent_variables/TestPersistentVariables.py2
-rw-r--r--lldb/test/expression_command/po_verbosity/TestPoVerbosity.py2
-rw-r--r--lldb/test/expression_command/radar_8638051/Test8638051.py2
-rw-r--r--lldb/test/expression_command/radar_9531204/TestPrintfAfterUp.py2
-rw-r--r--lldb/test/expression_command/radar_9673664/TestExprHelpExamples.py2
-rw-r--r--lldb/test/expression_command/test/TestExprs.py2
-rw-r--r--lldb/test/expression_command/test/TestExprs2.py2
-rw-r--r--lldb/test/expression_command/timeout/TestCallWithTimeout.py2
-rw-r--r--lldb/test/expression_command/two-files/TestObjCTypeQueryFromOtherCompileUnit.py2
-rw-r--r--lldb/test/functionalities/abbreviation/TestAbbreviations.py2
-rw-r--r--lldb/test/functionalities/abbreviation/TestCommonShortSpellings.py2
-rw-r--r--lldb/test/functionalities/alias/TestAliases.py2
-rw-r--r--lldb/test/functionalities/archives/TestBSDArchives.py2
-rw-r--r--lldb/test/functionalities/backticks/TestBackticksWithoutATarget.py2
-rw-r--r--lldb/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py2
-rw-r--r--lldb/test/functionalities/breakpoint/breakpoint_command/TestRegexpBreakCommand.py2
-rw-r--r--lldb/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py2
-rw-r--r--lldb/test/functionalities/breakpoint/breakpoint_ids/TestBreakpointIDs.py2
-rw-r--r--lldb/test/functionalities/breakpoint/breakpoint_ignore_count/TestBreakpointIgnoreCount.py2
-rw-r--r--lldb/test/functionalities/breakpoint/breakpoint_locations/TestBreakpointLocations.py2
-rw-r--r--lldb/test/functionalities/breakpoint/inlined_breakpoints/TestInlinedBreakpoints.py2
-rw-r--r--lldb/test/functionalities/command_history/TestCommandHistory.py2
-rw-r--r--lldb/test/functionalities/command_regex/TestCommandRegex.py2
-rw-r--r--lldb/test/functionalities/command_script/TestCommandScript.py2
-rw-r--r--lldb/test/functionalities/command_script/import/TestImport.py2
-rw-r--r--lldb/test/functionalities/command_script/import/rdar-12586188/TestRdar12586188.py2
-rw-r--r--lldb/test/functionalities/command_source/TestCommandSource.py2
-rw-r--r--lldb/test/functionalities/completion/TestCompletion.py2
-rw-r--r--lldb/test/functionalities/conditional_break/TestConditionalBreak.py2
-rw-r--r--lldb/test/functionalities/connect_remote/TestConnectRemote.py2
-rw-r--r--lldb/test/functionalities/data-formatter/data-formatter-advanced/TestDataFormatterAdv.py2
-rw-r--r--lldb/test/functionalities/data-formatter/data-formatter-categories/TestDataFormatterCategories.py2
-rw-r--r--lldb/test/functionalities/data-formatter/data-formatter-cpp/TestDataFormatterCpp.py2
-rw-r--r--lldb/test/functionalities/data-formatter/data-formatter-disabling/TestDataFormatterDisabling.py2
-rw-r--r--lldb/test/functionalities/data-formatter/data-formatter-globals/TestDataFormatterGlobals.py2
-rw-r--r--lldb/test/functionalities/data-formatter/data-formatter-named-summaries/TestDataFormatterNamedSummaries.py2
-rw-r--r--lldb/test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjC.py2
-rw-r--r--lldb/test/functionalities/data-formatter/data-formatter-python-synth/TestDataFormatterPythonSynth.py2
-rw-r--r--lldb/test/functionalities/data-formatter/data-formatter-script/TestDataFormatterScript.py2
-rw-r--r--lldb/test/functionalities/data-formatter/data-formatter-skip-summary/TestDataFormatterSkipSummary.py2
-rw-r--r--lldb/test/functionalities/data-formatter/data-formatter-smart-array/TestDataFormatterSmartArray.py2
-rw-r--r--lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/iterator/TestDataFormatterLibccIterator.py2
-rw-r--r--lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/TestDataFormatterLibcxxList.py2
-rw-r--r--lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/map/TestDataFormatterLibccMap.py2
-rw-r--r--lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/multimap/TestDataFormatterLibccMultiMap.py2
-rw-r--r--lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/multiset/TestDataFormatterLibcxxMultiSet.py2
-rw-r--r--lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/set/TestDataFormatterLibcxxSet.py2
-rw-r--r--lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/string/TestDataFormatterLibcxxString.py2
-rw-r--r--lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/unordered/TestDataFormatterUnordered.py2
-rw-r--r--lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/vbool/TestDataFormatterLibcxxVBool.py2
-rw-r--r--lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/vector/TestDataFormatterLibcxxVector.py2
-rw-r--r--lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/iterator/TestDataFormatterStdIterator.py2
-rw-r--r--lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/list/TestDataFormatterStdList.py2
-rw-r--r--lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/map/TestDataFormatterStdMap.py2
-rw-r--r--lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/string/TestDataFormatterStdString.py2
-rw-r--r--lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vbool/TestDataFormatterStdVBool.py2
-rw-r--r--lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vector/TestDataFormatterStdVector.py2
-rw-r--r--lldb/test/functionalities/data-formatter/data-formatter-synth/TestDataFormatterSynth.py2
-rw-r--r--lldb/test/functionalities/data-formatter/format-propagation/TestFormatPropagation.py2
-rw-r--r--lldb/test/functionalities/data-formatter/rdar-10449092/Test-rdar-10449092.py2
-rw-r--r--lldb/test/functionalities/data-formatter/rdar-10642615/Test-rdar-10642615.py2
-rw-r--r--lldb/test/functionalities/data-formatter/rdar-10887661/TestRdar10887661.py2
-rw-r--r--lldb/test/functionalities/data-formatter/rdar-11086338/TestRdar11086338.py2
-rw-r--r--lldb/test/functionalities/data-formatter/rdar-11628688/TestFormattersBoolRefPtr.py2
-rw-r--r--lldb/test/functionalities/data-formatter/rdar-11773899/TestFormattersBoolRefPtr.py2
-rw-r--r--lldb/test/functionalities/data-formatter/rdar-11988289/TestRdar 11988289.py2
-rw-r--r--lldb/test/functionalities/data-formatter/rdar-12437442/TestRdar12437442.py2
-rw-r--r--lldb/test/functionalities/data-formatter/rdar-12529957/TestRdar12529957.py2
-rw-r--r--lldb/test/functionalities/data-formatter/rdar-13338477/Test-rdar-13338477.py2
-rw-r--r--lldb/test/functionalities/data-formatter/rdar-3534688/TestFormattersOneIsSingular.py2
-rw-r--r--lldb/test/functionalities/data-formatter/rdar-9973865/Test-rdar-9973865.py2
-rw-r--r--lldb/test/functionalities/data-formatter/rdar-9973992/Test-rdar-9973992.py2
-rw-r--r--lldb/test/functionalities/data-formatter/rdar-9974002/Test-rdar-9974002.py2
-rw-r--r--lldb/test/functionalities/dead-strip/TestDeadStrip.py2
-rw-r--r--lldb/test/functionalities/embedded_interpreter/TestConvenienceVariables.py2
-rw-r--r--lldb/test/functionalities/exec/TestExec.py2
-rw-r--r--lldb/test/functionalities/expr-doesnt-deadlock/TestExprDoesntBlock.py2
-rw-r--r--lldb/test/functionalities/fat_archives/TestFatArchives.py2
-rw-r--r--lldb/test/functionalities/inferior-assert/TestInferiorAssert.py2
-rw-r--r--lldb/test/functionalities/inferior-changed/TestInferiorChanged.py2
-rw-r--r--lldb/test/functionalities/inferior-crashing/TestInferiorCrashing.py2
-rw-r--r--lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py2
-rw-r--r--lldb/test/functionalities/inline-stepping/TestInlineStepping.py2
-rw-r--r--lldb/test/functionalities/load_unload/TestLoadUnload.py2
-rw-r--r--lldb/test/functionalities/longjmp/TestLongjmp.py2
-rw-r--r--lldb/test/functionalities/memory/read/TestMemoryRead.py2
-rw-r--r--lldb/test/functionalities/non-overlapping-index-variable-i/TestIndexVariable.py2
-rw-r--r--lldb/test/functionalities/platform/TestPlatformCommand.py2
-rw-r--r--lldb/test/functionalities/plugins/commands/TestPluginCommands.py2
-rw-r--r--lldb/test/functionalities/process_attach/TestProcessAttach.py2
-rw-r--r--lldb/test/functionalities/process_launch/TestProcessLaunch.py2
-rw-r--r--lldb/test/functionalities/recursion/TestValueObjectRecursion.py2
-rw-r--r--lldb/test/functionalities/register/TestRegisters.py2
-rw-r--r--lldb/test/functionalities/return-value/TestReturnValue.py2
-rw-r--r--lldb/test/functionalities/set-data/TestSetData.py2
-rw-r--r--lldb/test/functionalities/signal/TestSendSignal.py2
-rw-r--r--lldb/test/functionalities/single-quote-in-filename-to-lldb/TestSingleQuoteInFilename.py2
-rw-r--r--lldb/test/functionalities/stop-hook/TestStopHookCmd.py2
-rw-r--r--lldb/test/functionalities/stop-hook/TestStopHookMechanism.py2
-rw-r--r--lldb/test/functionalities/stop-hook/multiple_threads/TestStopHookMultipleThreads.py2
-rw-r--r--lldb/test/functionalities/target_command/TestTargetCommand.py2
-rw-r--r--lldb/test/functionalities/thread/TestNumThreads.py2
-rw-r--r--lldb/test/functionalities/thread/break_after_join/TestBreakAfterJoin.py2
-rw-r--r--lldb/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py2
-rw-r--r--lldb/test/functionalities/thread/create_after_attach/TestCreateAfterAttach.py2
-rw-r--r--lldb/test/functionalities/thread/create_during_step/TestCreateDuringStep.py2
-rw-r--r--lldb/test/functionalities/thread/exit_during_break/TestExitDuringBreak.py2
-rw-r--r--lldb/test/functionalities/thread/exit_during_step/TestExitDuringStep.py2
-rw-r--r--lldb/test/functionalities/thread/jump/TestThreadJump.py2
-rw-r--r--lldb/test/functionalities/thread/multi_break/TestMultipleBreakpoints.py2
-rw-r--r--lldb/test/functionalities/thread/state/TestThreadStates.py2
-rw-r--r--lldb/test/functionalities/thread/step_out/TestThreadStepOut.py2
-rw-r--r--lldb/test/functionalities/thread/thread_exit/TestThreadExit.py2
-rw-r--r--lldb/test/functionalities/type_completion/TestTypeCompletion.py2
-rw-r--r--lldb/test/functionalities/watchpoint/hello_watchlocation/TestWatchLocation.py2
-rw-r--r--lldb/test/functionalities/watchpoint/hello_watchpoint/TestMyFirstWatchpoint.py2
-rw-r--r--lldb/test/functionalities/watchpoint/multiple_threads/TestWatchpointMultipleThreads.py2
-rw-r--r--lldb/test/functionalities/watchpoint/variable_out_of_scope/TestWatchedVarHitWhenInScope.py2
-rw-r--r--lldb/test/functionalities/watchpoint/watchpoint_commands/TestWatchpointCommands.py2
-rw-r--r--lldb/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py2
-rw-r--r--lldb/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandPython.py2
-rw-r--r--lldb/test/functionalities/watchpoint/watchpoint_commands/condition/TestWatchpointConditionCmd.py2
-rw-r--r--lldb/test/functionalities/watchpoint/watchpoint_events/TestWatchpointEvents.py2
-rw-r--r--lldb/test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py2
-rw-r--r--lldb/test/functionalities/watchpoint/watchpoint_set_command/TestWatchpointSetErrorCases.py2
-rw-r--r--lldb/test/help/TestHelp.py2
-rw-r--r--lldb/test/lang/c/anonymous/TestAnonymous.py2
-rw-r--r--lldb/test/lang/c/array_types/TestArrayTypes.py2
-rw-r--r--lldb/test/lang/c/bitfields/TestBitfields.py2
-rw-r--r--lldb/test/lang/c/blocks/TestBlocks.py2
-rw-r--r--lldb/test/lang/c/const_variables/TestConstVariables.py2
-rw-r--r--lldb/test/lang/c/enum_types/TestEnumTypes.py2
-rw-r--r--lldb/test/lang/c/forward/TestForwardDeclaration.py2
-rw-r--r--lldb/test/lang/c/function_types/TestFunctionTypes.py2
-rw-r--r--lldb/test/lang/c/global_variables/TestGlobalVariables.py2
-rw-r--r--lldb/test/lang/c/set_values/TestSetValues.py2
-rw-r--r--lldb/test/lang/c/shared_lib/TestSharedLib.py2
-rw-r--r--lldb/test/lang/c/shared_lib_stripped_symbols/TestSharedLibStrippedSymbols.py2
-rw-r--r--lldb/test/lang/c/stepping/TestStepAndBreakpoints.py2
-rw-r--r--lldb/test/lang/c/stepping/TestThreadStepping.py2
-rw-r--r--lldb/test/lang/c/strings/TestCStrings.py2
-rw-r--r--lldb/test/lang/c/struct_types/TestStructTypes.py2
-rw-r--r--lldb/test/lang/c/tls_globals/TestTlsGlobals.py2
-rw-r--r--lldb/test/lang/cpp/bool/TestCPPBool.py2
-rw-r--r--lldb/test/lang/cpp/breakpoints/TestCPPBreakpoints.py2
-rw-r--r--lldb/test/lang/cpp/call-function/TestCallCPPFunction.py2
-rw-r--r--lldb/test/lang/cpp/char1632_t/TestChar1632T.py2
-rw-r--r--lldb/test/lang/cpp/class_static/TestStaticVariables.py2
-rw-r--r--lldb/test/lang/cpp/class_types/TestClassTypes.py2
-rw-r--r--lldb/test/lang/cpp/class_types/TestClassTypesDisassembly.py2
-rw-r--r--lldb/test/lang/cpp/dynamic-value/TestCppValueCast.py2
-rw-r--r--lldb/test/lang/cpp/dynamic-value/TestDynamicValue.py2
-rw-r--r--lldb/test/lang/cpp/enum_types/TestCPP11EnumTypes.py2
-rw-r--r--lldb/test/lang/cpp/exceptions/TestCPPExceptionBreakpoints.py2
-rw-r--r--lldb/test/lang/cpp/namespace/TestNamespace.py2
-rw-r--r--lldb/test/lang/cpp/overloaded-functions/TestOverloadedFunctions.py2
-rw-r--r--lldb/test/lang/cpp/rdar12991846/TestRdar12991846.py2
-rw-r--r--lldb/test/lang/cpp/rvalue-references/TestRvalueReferences.py2
-rw-r--r--lldb/test/lang/cpp/signed_types/TestSignedTypes.py2
-rw-r--r--lldb/test/lang/cpp/static_members/TestCPPStaticMembers.py2
-rw-r--r--lldb/test/lang/cpp/static_methods/TestCPPStaticMethods.py2
-rw-r--r--lldb/test/lang/cpp/stl/TestSTL.py2
-rw-r--r--lldb/test/lang/cpp/stl/TestStdCXXDisassembly.py2
-rw-r--r--lldb/test/lang/cpp/this/TestCPPThis.py2
-rw-r--r--lldb/test/lang/cpp/unique-types/TestUniqueTypes.py2
-rw-r--r--lldb/test/lang/cpp/unsigned_types/TestUnsignedTypes.py2
-rw-r--r--lldb/test/lang/cpp/virtual/TestVirtual.py2
-rw-r--r--lldb/test/lang/cpp/wchar_t/TestCxxWCharT.py2
-rw-r--r--lldb/test/lang/objc/blocks/TestObjCIvarsInBlocks.py2
-rw-r--r--lldb/test/lang/objc/forward-decl/TestForwardDecl.py2
-rw-r--r--lldb/test/lang/objc/foundation/TestConstStrings.py2
-rw-r--r--lldb/test/lang/objc/foundation/TestFoundationDisassembly.py2
-rw-r--r--lldb/test/lang/objc/foundation/TestObjCMethods.py2
-rw-r--r--lldb/test/lang/objc/foundation/TestObjCMethods2.py2
-rw-r--r--lldb/test/lang/objc/foundation/TestObjectDescriptionAPI.py2
-rw-r--r--lldb/test/lang/objc/foundation/TestRuntimeTypes.py2
-rw-r--r--lldb/test/lang/objc/foundation/TestSymbolTable.py2
-rw-r--r--lldb/test/lang/objc/hidden-ivars/TestHiddenIvars.py2
-rw-r--r--lldb/test/lang/objc/objc++/TestObjCXX.py2
-rw-r--r--lldb/test/lang/objc/objc-baseclass-sbtype/TestObjCBaseClassSBType.py2
-rw-r--r--lldb/test/lang/objc/objc-builtin-types/TestObjCBuiltinTypes.py2
-rw-r--r--lldb/test/lang/objc/objc-checker/TestObjCCheckers.py2
-rw-r--r--lldb/test/lang/objc/objc-class-method/TestObjCClassMethod.py2
-rw-r--r--lldb/test/lang/objc/objc-dyn-sbtype/TestObjCDynamicSBType.py2
-rw-r--r--lldb/test/lang/objc/objc-dynamic-value/TestObjCDynamicValue.py2
-rw-r--r--lldb/test/lang/objc/objc-ivar-offsets/TestObjCIvarOffsets.py2
-rw-r--r--lldb/test/lang/objc/objc-ivar-stripped/TestObjCIvarStripped.py2
-rw-r--r--lldb/test/lang/objc/objc-new-syntax/TestObjCNewSyntax.py2
-rw-r--r--lldb/test/lang/objc/objc-optimized/TestObjcOptimized.py2
-rw-r--r--lldb/test/lang/objc/objc-property/TestObjCProperty.py2
-rw-r--r--lldb/test/lang/objc/objc-static-method-stripped/TestObjCStaticMethodStripped.py2
-rw-r--r--lldb/test/lang/objc/objc-static-method/TestObjCStaticMethod.py2
-rw-r--r--lldb/test/lang/objc/objc-stepping/TestObjCStepping.py2
-rw-r--r--lldb/test/lang/objc/objc-struct-return/TestObjCStructReturn.py4
-rw-r--r--lldb/test/lang/objc/objc-super/TestObjCSuper.py2
-rw-r--r--lldb/test/lang/objc/print-obj/TestPrintObj.py2
-rw-r--r--lldb/test/lang/objc/radar-9691614/TestObjCMethodReturningBOOL.py2
-rw-r--r--lldb/test/lang/objc/rdar-10967107/TestRdar10967107.py2
-rw-r--r--lldb/test/lang/objc/rdar-11355592/TestRdar11355592.py2
-rw-r--r--lldb/test/lang/objc/rdar-12408181/TestRdar12408181.py2
-rw-r--r--lldb/test/lang/objc/real-definition/TestRealDefinition.py2
-rw-r--r--lldb/test/lang/objc/self/TestObjCSelf.py2
-rw-r--r--lldb/test/linux/builtin_trap/TestBuiltinTrap.py2
-rw-r--r--lldb/test/lldbtest.py12
-rw-r--r--lldb/test/logging/TestLogging.py2
-rw-r--r--lldb/test/macosx/add-dsym/TestAddDsymMidExecutionCommand.py2
-rw-r--r--lldb/test/macosx/debug-info/apple_types/TestAppleTypesIsProduced.py2
-rw-r--r--lldb/test/macosx/order/TestOrderFile.py2
-rw-r--r--lldb/test/macosx/universal/TestUniversal.py2
-rw-r--r--lldb/test/python_api/debugger/TestDebuggerAPI.py2
-rw-r--r--lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py2
-rw-r--r--lldb/test/python_api/disassemble-raw-data/TestDisassembleRawData.py2
-rw-r--r--lldb/test/python_api/disassemble-raw-data/TestDisassemble_VST1_64.py2
-rw-r--r--lldb/test/python_api/event/TestEvents.py2
-rw-r--r--lldb/test/python_api/formatters/TestFormattersSBAPI.py2
-rw-r--r--lldb/test/python_api/frame/TestFrames.py2
-rw-r--r--lldb/test/python_api/frame/inlines/TestInlinedFrame.py2
-rw-r--r--lldb/test/python_api/function_symbol/TestDisasmAPI.py2
-rw-r--r--lldb/test/python_api/function_symbol/TestSymbolAPI.py2
-rw-r--r--lldb/test/python_api/hello_world/TestHelloWorld.py2
-rw-r--r--lldb/test/python_api/input_reader/TestInputReaderCallback.py2
-rw-r--r--lldb/test/python_api/interpreter/TestCommandInterpreterAPI.py2
-rw-r--r--lldb/test/python_api/lldbutil/frame/TestFrameUtils.py2
-rw-r--r--lldb/test/python_api/lldbutil/iter/TestLLDBIterator.py2
-rw-r--r--lldb/test/python_api/lldbutil/iter/TestRegistersIterator.py2
-rw-r--r--lldb/test/python_api/lldbutil/process/TestPrintStackTraces.py2
-rw-r--r--lldb/test/python_api/module_section/TestModuleAndSection.py2
-rw-r--r--lldb/test/python_api/objc_type/TestObjCType.py2
-rw-r--r--lldb/test/python_api/process/TestProcessAPI.py2
-rw-r--r--lldb/test/python_api/process/io/TestProcessIO.py2
-rw-r--r--lldb/test/python_api/rdar-12481949/Test-rdar-12481949.py2
-rw-r--r--lldb/test/python_api/sbdata/TestSBData.py2
-rw-r--r--lldb/test/python_api/symbol-context/TestSymbolContext.py2
-rw-r--r--lldb/test/python_api/target/TestTargetAPI.py2
-rw-r--r--lldb/test/python_api/thread/TestThreadAPI.py2
-rw-r--r--lldb/test/python_api/type/TestTypeList.py2
-rw-r--r--lldb/test/python_api/value/TestValueAPI.py2
-rw-r--r--lldb/test/python_api/value/change_values/TestChangeValueAPI.py2
-rw-r--r--lldb/test/python_api/value/linked_list/TestValueAPILinkedList.py2
-rw-r--r--lldb/test/python_api/watchpoint/TestSetWatchpoint.py2
-rw-r--r--lldb/test/python_api/watchpoint/TestWatchpointIgnoreCount.py2
-rw-r--r--lldb/test/python_api/watchpoint/TestWatchpointIter.py2
-rw-r--r--lldb/test/python_api/watchpoint/condition/TestWatchpointConditionAPI.py2
-rw-r--r--lldb/test/python_api/watchpoint/watchlocation/TestSetWatchlocation.py2
-rw-r--r--lldb/test/python_api/watchpoint/watchlocation/TestTargetWatchAddress.py2
-rw-r--r--lldb/test/settings/TestSettings.py2
-rw-r--r--lldb/test/source-manager/TestSourceManager.py2
-rw-r--r--lldb/test/terminal/TestSTTYBeforeAndAfter.py2
-rw-r--r--lldb/test/types/HideTestFailures.py4
-rw-r--r--lldb/test/types/TestFloatTypes.py2
-rw-r--r--lldb/test/types/TestFloatTypesExpr.py2
-rw-r--r--lldb/test/types/TestIntegerTypes.py2
-rw-r--r--lldb/test/types/TestIntegerTypesExpr.py2
-rw-r--r--lldb/test/warnings/uuid/TestAddDsymCommand.py2
273 files changed, 284 insertions, 276 deletions
diff --git a/lldb/test/api/check_public_api_headers/TestPublicAPIHeaders.py b/lldb/test/api/check_public_api_headers/TestPublicAPIHeaders.py
index 63618e05c36..269e05644cd 100644
--- a/lldb/test/api/check_public_api_headers/TestPublicAPIHeaders.py
+++ b/lldb/test/api/check_public_api_headers/TestPublicAPIHeaders.py
@@ -10,7 +10,7 @@ import lldbutil
class SBDirCheckerCase(TestBase):
- mydir = os.path.join("api", "check_public_api_headers")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
TestBase.setUp(self)
diff --git a/lldb/test/api/multithreaded/TestMultithreaded.py b/lldb/test/api/multithreaded/TestMultithreaded.py
index 0842e148212..a9f45bfb2cd 100644
--- a/lldb/test/api/multithreaded/TestMultithreaded.py
+++ b/lldb/test/api/multithreaded/TestMultithreaded.py
@@ -8,7 +8,7 @@ import subprocess
class SBBreakpointCallbackCase(TestBase):
- mydir = os.path.join("api", "multithreaded")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
TestBase.setUp(self)
diff --git a/lldb/test/arm_emulation/TestEmulations.py b/lldb/test/arm_emulation/TestEmulations.py
index c0a78a341bb..baf791cff0c 100644
--- a/lldb/test/arm_emulation/TestEmulations.py
+++ b/lldb/test/arm_emulation/TestEmulations.py
@@ -9,7 +9,7 @@ from lldbtest import *
class ARMEmulationTestCase(TestBase):
- mydir = "arm_emulation"
+ mydir = TestBase.compute_mydir(__file__)
def test_thumb_emulations (self):
current_dir = os.getcwd();
diff --git a/lldb/test/benchmarks/disassembly/TestDisassembly.py b/lldb/test/benchmarks/disassembly/TestDisassembly.py
index cff68b7556f..a2a54bd7a25 100644
--- a/lldb/test/benchmarks/disassembly/TestDisassembly.py
+++ b/lldb/test/benchmarks/disassembly/TestDisassembly.py
@@ -12,7 +12,7 @@ def is_exe(fpath):
class DisassembleDriverMainLoop(BenchBase):
- mydir = os.path.join("benchmarks", "disassembly")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
"""
diff --git a/lldb/test/benchmarks/disassembly/TestDoAttachThenDisassembly.py b/lldb/test/benchmarks/disassembly/TestDoAttachThenDisassembly.py
index 0085a144c75..b31c244d57b 100644
--- a/lldb/test/benchmarks/disassembly/TestDoAttachThenDisassembly.py
+++ b/lldb/test/benchmarks/disassembly/TestDoAttachThenDisassembly.py
@@ -10,7 +10,7 @@ from lldbbench import *
class AttachThenDisassemblyBench(BenchBase):
- mydir = os.path.join("benchmarks", "disassembly")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
BenchBase.setUp(self)
diff --git a/lldb/test/benchmarks/disassembly/TestXcode41Vs42GDBDisassembly.py b/lldb/test/benchmarks/disassembly/TestXcode41Vs42GDBDisassembly.py
index 6e6875c4000..6c6dd9886b8 100644
--- a/lldb/test/benchmarks/disassembly/TestXcode41Vs42GDBDisassembly.py
+++ b/lldb/test/benchmarks/disassembly/TestXcode41Vs42GDBDisassembly.py
@@ -8,7 +8,7 @@ from lldbbench import *
class XCode41Vs42GDBDisassembly(BenchBase):
- mydir = os.path.join("benchmarks", "disassembly")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
BenchBase.setUp(self)
diff --git a/lldb/test/benchmarks/expression/TestExpressionCmd.py b/lldb/test/benchmarks/expression/TestExpressionCmd.py
index ca24739144f..5f7100442d4 100644
--- a/lldb/test/benchmarks/expression/TestExpressionCmd.py
+++ b/lldb/test/benchmarks/expression/TestExpressionCmd.py
@@ -8,7 +8,7 @@ from lldbbench import *
class ExpressionEvaluationCase(BenchBase):
- mydir = os.path.join("benchmarks", "expression")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
BenchBase.setUp(self)
diff --git a/lldb/test/benchmarks/expression/TestRepeatedExprs.py b/lldb/test/benchmarks/expression/TestRepeatedExprs.py
index 91a33354162..1e7338fd8a2 100644
--- a/lldb/test/benchmarks/expression/TestRepeatedExprs.py
+++ b/lldb/test/benchmarks/expression/TestRepeatedExprs.py
@@ -8,7 +8,7 @@ from lldbbench import *
class RepeatedExprsCase(BenchBase):
- mydir = os.path.join("benchmarks", "expression")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
BenchBase.setUp(self)
diff --git a/lldb/test/benchmarks/frame_variable/TestFrameVariableResponse.py b/lldb/test/benchmarks/frame_variable/TestFrameVariableResponse.py
index 03cc09d0a32..e3acedd33e8 100644
--- a/lldb/test/benchmarks/frame_variable/TestFrameVariableResponse.py
+++ b/lldb/test/benchmarks/frame_variable/TestFrameVariableResponse.py
@@ -8,7 +8,7 @@ from lldbbench import *
class FrameVariableResponseBench(BenchBase):
- mydir = os.path.join("benchmarks", "frame_variable")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
BenchBase.setUp(self)
diff --git a/lldb/test/benchmarks/startup/TestStartupDelays.py b/lldb/test/benchmarks/startup/TestStartupDelays.py
index 2c3cad5345b..b9bf90b1dfb 100644
--- a/lldb/test/benchmarks/startup/TestStartupDelays.py
+++ b/lldb/test/benchmarks/startup/TestStartupDelays.py
@@ -8,7 +8,7 @@ from lldbbench import *
class StartupDelaysBench(BenchBase):
- mydir = os.path.join("benchmarks", "startup")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
BenchBase.setUp(self)
diff --git a/lldb/test/benchmarks/stepping/TestRunHooksThenSteppings.py b/lldb/test/benchmarks/stepping/TestRunHooksThenSteppings.py
index dca6e954a77..da3ff22e104 100644
--- a/lldb/test/benchmarks/stepping/TestRunHooksThenSteppings.py
+++ b/lldb/test/benchmarks/stepping/TestRunHooksThenSteppings.py
@@ -8,7 +8,7 @@ from lldbbench import *
class RunHooksThenSteppingsBench(BenchBase):
- mydir = os.path.join("benchmarks", "stepping")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
BenchBase.setUp(self)
diff --git a/lldb/test/benchmarks/stepping/TestSteppingSpeed.py b/lldb/test/benchmarks/stepping/TestSteppingSpeed.py
index 780e25384c9..a62491c4963 100644
--- a/lldb/test/benchmarks/stepping/TestSteppingSpeed.py
+++ b/lldb/test/benchmarks/stepping/TestSteppingSpeed.py
@@ -8,7 +8,7 @@ from lldbbench import *
class SteppingSpeedBench(BenchBase):
- mydir = os.path.join("benchmarks", "stepping")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
BenchBase.setUp(self)
diff --git a/lldb/test/benchmarks/turnaround/TestCompileRunToBreakpointTurnaround.py b/lldb/test/benchmarks/turnaround/TestCompileRunToBreakpointTurnaround.py
index d923f132e9a..d9d3f423ae8 100644
--- a/lldb/test/benchmarks/turnaround/TestCompileRunToBreakpointTurnaround.py
+++ b/lldb/test/benchmarks/turnaround/TestCompileRunToBreakpointTurnaround.py
@@ -8,7 +8,7 @@ from lldbbench import *
class CompileRunToBreakpointBench(BenchBase):
- mydir = os.path.join("benchmarks", "turnaround")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
BenchBase.setUp(self)
diff --git a/lldb/test/expression_command/call-function/TestCallStdStringFunction.py b/lldb/test/expression_command/call-function/TestCallStdStringFunction.py
index 96ad361ea69..e3cea82ad5a 100644
--- a/lldb/test/expression_command/call-function/TestCallStdStringFunction.py
+++ b/lldb/test/expression_command/call-function/TestCallStdStringFunction.py
@@ -9,7 +9,7 @@ from lldbtest import *
class ExprCommandCallFunctionTestCase(TestBase):
- mydir = os.path.join("expression_command", "call-function")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/expression_command/call-restarts/TestCallThatRestarts.py b/lldb/test/expression_command/call-restarts/TestCallThatRestarts.py
index e48f8eb954b..def31a1e041 100644
--- a/lldb/test/expression_command/call-restarts/TestCallThatRestarts.py
+++ b/lldb/test/expression_command/call-restarts/TestCallThatRestarts.py
@@ -9,7 +9,7 @@ from lldbtest import *
class ExprCommandWithTimeoutsTestCase(TestBase):
- mydir = os.path.join("expression_command", "call-restarts")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/expression_command/call-throws/TestCallThatThrows.py b/lldb/test/expression_command/call-throws/TestCallThatThrows.py
index 5902857508d..d2ccb076a93 100644
--- a/lldb/test/expression_command/call-throws/TestCallThatThrows.py
+++ b/lldb/test/expression_command/call-throws/TestCallThatThrows.py
@@ -9,7 +9,7 @@ from lldbtest import *
class ExprCommandWithThrowTestCase(TestBase):
- mydir = os.path.join("expression_command", "call-throws")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/expression_command/formatters/TestFormatters.py b/lldb/test/expression_command/formatters/TestFormatters.py
index 8f312f6e3cb..b83b63cf4d4 100644
--- a/lldb/test/expression_command/formatters/TestFormatters.py
+++ b/lldb/test/expression_command/formatters/TestFormatters.py
@@ -9,7 +9,7 @@ from lldbtest import *
class ExprFormattersTestCase(TestBase):
- mydir = os.path.join("expression_command", "formatters")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/expression_command/issue_11588/Test11588.py b/lldb/test/expression_command/issue_11588/Test11588.py
index c67afd44130..81967d967d0 100644
--- a/lldb/test/expression_command/issue_11588/Test11588.py
+++ b/lldb/test/expression_command/issue_11588/Test11588.py
@@ -12,7 +12,7 @@ from lldbtest import *
class Issue11581TestCase(TestBase):
- mydir = os.path.join("expression_command", "issue_11588")
+ mydir = TestBase.compute_mydir(__file__)
def test_11581_commands(self):
# This is the function to remove the custom commands in order to have a
diff --git a/lldb/test/expression_command/persistent_types/TestPersistentTypes.py b/lldb/test/expression_command/persistent_types/TestPersistentTypes.py
index bf24e9e1285..51b7b06ce74 100644
--- a/lldb/test/expression_command/persistent_types/TestPersistentTypes.py
+++ b/lldb/test/expression_command/persistent_types/TestPersistentTypes.py
@@ -9,7 +9,7 @@ from lldbtest import *
class PersistenttypesTestCase(TestBase):
- mydir = os.path.join("expression_command", "persistent_types")
+ mydir = TestBase.compute_mydir(__file__)
def test_persistent_types(self):
"""Test that lldb persistent types works correctly."""
diff --git a/lldb/test/expression_command/persistent_variables/TestPersistentVariables.py b/lldb/test/expression_command/persistent_variables/TestPersistentVariables.py
index 2a101084fcc..8e7af009c6a 100644
--- a/lldb/test/expression_command/persistent_variables/TestPersistentVariables.py
+++ b/lldb/test/expression_command/persistent_variables/TestPersistentVariables.py
@@ -9,7 +9,7 @@ from lldbtest import *
class PersistentVariablesTestCase(TestBase):
- mydir = os.path.join("expression_command", "persistent_variables")
+ mydir = TestBase.compute_mydir(__file__)
def test_persistent_variables(self):
"""Test that lldb persistent variables works correctly."""
diff --git a/lldb/test/expression_command/po_verbosity/TestPoVerbosity.py b/lldb/test/expression_command/po_verbosity/TestPoVerbosity.py
index d815217abcc..da61acb80c2 100644
--- a/lldb/test/expression_command/po_verbosity/TestPoVerbosity.py
+++ b/lldb/test/expression_command/po_verbosity/TestPoVerbosity.py
@@ -9,7 +9,7 @@ from lldbtest import *
class PoVerbosityTestCase(TestBase):
- mydir = os.path.join("expression_command", "po_verbosity")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/expression_command/radar_8638051/Test8638051.py b/lldb/test/expression_command/radar_8638051/Test8638051.py
index 89c8b9e8aef..823c8e12113 100644
--- a/lldb/test/expression_command/radar_8638051/Test8638051.py
+++ b/lldb/test/expression_command/radar_8638051/Test8638051.py
@@ -9,7 +9,7 @@ from lldbtest import *
class Radar8638051TestCase(TestBase):
- mydir = os.path.join("expression_command", "radar_8638051")
+ mydir = TestBase.compute_mydir(__file__)
def test_expr_commands(self):
"""The following expression commands should not crash."""
diff --git a/lldb/test/expression_command/radar_9531204/TestPrintfAfterUp.py b/lldb/test/expression_command/radar_9531204/TestPrintfAfterUp.py
index 9d63e8f98b2..1c96ce1e849 100644
--- a/lldb/test/expression_command/radar_9531204/TestPrintfAfterUp.py
+++ b/lldb/test/expression_command/radar_9531204/TestPrintfAfterUp.py
@@ -10,7 +10,7 @@ import lldbutil
class Radar9531204TestCase(TestBase):
- mydir = os.path.join("expression_command", "radar_9531204")
+ mydir = TestBase.compute_mydir(__file__)
# rdar://problem/9531204
@expectedFailureFreeBSD('llvm.org/pr17183')
diff --git a/lldb/test/expression_command/radar_9673664/TestExprHelpExamples.py b/lldb/test/expression_command/radar_9673664/TestExprHelpExamples.py
index 3ae2227f0e7..ea15e86b8ae 100644
--- a/lldb/test/expression_command/radar_9673664/TestExprHelpExamples.py
+++ b/lldb/test/expression_command/radar_9673664/TestExprHelpExamples.py
@@ -10,7 +10,7 @@ import lldbutil
class Radar9673644TestCase(TestBase):
- mydir = os.path.join("expression_command", "radar_9673664")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/expression_command/test/TestExprs.py b/lldb/test/expression_command/test/TestExprs.py
index 91492c1384c..01fec1e36e7 100644
--- a/lldb/test/expression_command/test/TestExprs.py
+++ b/lldb/test/expression_command/test/TestExprs.py
@@ -19,7 +19,7 @@ from lldbtest import *
class BasicExprCommandsTestCase(TestBase):
- mydir = os.path.join("expression_command", "test")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/expression_command/test/TestExprs2.py b/lldb/test/expression_command/test/TestExprs2.py
index c3de5c0d18c..1fdb787898a 100644
--- a/lldb/test/expression_command/test/TestExprs2.py
+++ b/lldb/test/expression_command/test/TestExprs2.py
@@ -10,7 +10,7 @@ from lldbtest import *
class ExprCommands2TestCase(TestBase):
- mydir = os.path.join("expression_command", "test")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/expression_command/timeout/TestCallWithTimeout.py b/lldb/test/expression_command/timeout/TestCallWithTimeout.py
index 8a4be8f9743..4bb55c005da 100644
--- a/lldb/test/expression_command/timeout/TestCallWithTimeout.py
+++ b/lldb/test/expression_command/timeout/TestCallWithTimeout.py
@@ -9,7 +9,7 @@ from lldbtest import *
class ExprCommandWithTimeoutsTestCase(TestBase):
- mydir = os.path.join("expression_command", "timeout")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/expression_command/two-files/TestObjCTypeQueryFromOtherCompileUnit.py b/lldb/test/expression_command/two-files/TestObjCTypeQueryFromOtherCompileUnit.py
index 4e7ac4124e6..2314ad82c4a 100644
--- a/lldb/test/expression_command/two-files/TestObjCTypeQueryFromOtherCompileUnit.py
+++ b/lldb/test/expression_command/two-files/TestObjCTypeQueryFromOtherCompileUnit.py
@@ -11,7 +11,7 @@ import lldbutil
class ObjCTypeQueryTestCase(TestBase):
- mydir = os.path.join("expression_command", "two-files")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/functionalities/abbreviation/TestAbbreviations.py b/lldb/test/functionalities/abbreviation/TestAbbreviations.py
index 38b9005537a..c8641506734 100644
--- a/lldb/test/functionalities/abbreviation/TestAbbreviations.py
+++ b/lldb/test/functionalities/abbreviation/TestAbbreviations.py
@@ -10,7 +10,7 @@ import lldbutil
class AbbreviationsTestCase(TestBase):
- mydir = os.path.join("functionalities", "abbreviation")
+ mydir = TestBase.compute_mydir(__file__)
def test_nonrunning_command_abbreviations (self):
self.expect("ap script",
diff --git a/lldb/test/functionalities/abbreviation/TestCommonShortSpellings.py b/lldb/test/functionalities/abbreviation/TestCommonShortSpellings.py
index 6782f701d88..ec322db1c2d 100644
--- a/lldb/test/functionalities/abbreviation/TestCommonShortSpellings.py
+++ b/lldb/test/functionalities/abbreviation/TestCommonShortSpellings.py
@@ -11,7 +11,7 @@ import lldbutil
class CommonShortSpellingsTestCase(TestBase):
- mydir = os.path.join("functionalities", "abbreviation")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/alias/TestAliases.py b/lldb/test/functionalities/alias/TestAliases.py
index 590e0ac5618..3713209e1b4 100644
--- a/lldb/test/functionalities/alias/TestAliases.py
+++ b/lldb/test/functionalities/alias/TestAliases.py
@@ -10,7 +10,7 @@ import lldbutil
class AliasTestCase(TestBase):
- mydir = os.path.join("functionalities", "alias")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/archives/TestBSDArchives.py b/lldb/test/functionalities/archives/TestBSDArchives.py
index 46871753c93..632b9819070 100644
--- a/lldb/test/functionalities/archives/TestBSDArchives.py
+++ b/lldb/test/functionalities/archives/TestBSDArchives.py
@@ -8,7 +8,7 @@ import lldbutil
class BSDArchivesTestCase(TestBase):
- mydir = os.path.join("functionalities", "archives")
+ mydir = TestBase.compute_mydir(__file__)
def test_with_dwarf(self):
"""Break inside a() and b() defined within libfoo.a."""
diff --git a/lldb/test/functionalities/backticks/TestBackticksWithoutATarget.py b/lldb/test/functionalities/backticks/TestBackticksWithoutATarget.py
index d42fbe76ee5..7c8cf86341f 100644
--- a/lldb/test/functionalities/backticks/TestBackticksWithoutATarget.py
+++ b/lldb/test/functionalities/backticks/TestBackticksWithoutATarget.py
@@ -9,7 +9,7 @@ from lldbtest import *
class BackticksWithNoTargetTestCase(TestBase):
- mydir = "functionalities/backticks"
+ mydir = TestBase.compute_mydir(__file__)
def test_backticks_no_target(self):
"""A simple test of backticks without a target."""
diff --git a/lldb/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py b/lldb/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py
index a5e66b319e8..4b5e9830f22 100644
--- a/lldb/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py
+++ b/lldb/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py
@@ -10,7 +10,7 @@ import lldbutil
class BreakpointCommandTestCase(TestBase):
- mydir = os.path.join("functionalities", "breakpoint", "breakpoint_command")
+ mydir = TestBase.compute_mydir(__file__)
@classmethod
def classCleanup(cls):
diff --git a/lldb/test/functionalities/breakpoint/breakpoint_command/TestRegexpBreakCommand.py b/lldb/test/functionalities/breakpoint/breakpoint_command/TestRegexpBreakCommand.py
index aa273692b4d..26764fabcef 100644
--- a/lldb/test/functionalities/breakpoint/breakpoint_command/TestRegexpBreakCommand.py
+++ b/lldb/test/functionalities/breakpoint/breakpoint_command/TestRegexpBreakCommand.py
@@ -10,7 +10,7 @@ import lldbutil
class RegexpBreakCommandTestCase(TestBase):
- mydir = os.path.join("functionalities", "breakpoint", "breakpoint_command")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py b/lldb/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py
index 25a9ed15aab..95a515efd10 100644
--- a/lldb/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py
+++ b/lldb/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py
@@ -10,7 +10,7 @@ from lldbtest import *
class BreakpointConditionsTestCase(TestBase):
- mydir = os.path.join("functionalities", "breakpoint", "breakpoint_conditions")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/breakpoint/breakpoint_ids/TestBreakpointIDs.py b/lldb/test/functionalities/breakpoint/breakpoint_ids/TestBreakpointIDs.py
index 15e79c25ccf..89d90362eab 100644
--- a/lldb/test/functionalities/breakpoint/breakpoint_ids/TestBreakpointIDs.py
+++ b/lldb/test/functionalities/breakpoint/breakpoint_ids/TestBreakpointIDs.py
@@ -10,7 +10,7 @@ import lldbutil
class BreakpointIDTestCase(TestBase):
- mydir = os.path.join("functionalities", "breakpoint", "breakpoint_ids")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/breakpoint/breakpoint_ignore_count/TestBreakpointIgnoreCount.py b/lldb/test/functionalities/breakpoint/breakpoint_ignore_count/TestBreakpointIgnoreCount.py
index c256562ec0e..c673a3b690a 100644
--- a/lldb/test/functionalities/breakpoint/breakpoint_ignore_count/TestBreakpointIgnoreCount.py
+++ b/lldb/test/functionalities/breakpoint/breakpoint_ignore_count/TestBreakpointIgnoreCount.py
@@ -10,7 +10,7 @@ from lldbtest import *
class BreakpointIgnoreCountTestCase(TestBase):
- mydir = os.path.join("functionalities", "breakpoint", "breakpoint_ignore_count")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/breakpoint/breakpoint_locations/TestBreakpointLocations.py b/lldb/test/functionalities/breakpoint/breakpoint_locations/TestBreakpointLocations.py
index e6896c3894c..79c6a4ccdce 100644
--- a/lldb/test/functionalities/breakpoint/breakpoint_locations/TestBreakpointLocations.py
+++ b/lldb/test/functionalities/breakpoint/breakpoint_locations/TestBreakpointLocations.py
@@ -10,7 +10,7 @@ import lldbutil
class BreakpointLocationsTestCase(TestBase):
- mydir = os.path.join("functionalities", "breakpoint", "breakpoint_locations")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/breakpoint/inlined_breakpoints/TestInlinedBreakpoints.py b/lldb/test/functionalities/breakpoint/inlined_breakpoints/TestInlinedBreakpoints.py
index fc4084124cc..d3dc055fa9e 100644
--- a/lldb/test/functionalities/breakpoint/inlined_breakpoints/TestInlinedBreakpoints.py
+++ b/lldb/test/functionalities/breakpoint/inlined_breakpoints/TestInlinedBreakpoints.py
@@ -12,7 +12,7 @@ import lldbutil
class InlinedBreakpointsTestCase(TestBase):
"""Bug fixed: rdar://problem/8464339"""
- mydir = os.path.join("functionalities", "breakpoint", "inlined_breakpoints")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/command_history/TestCommandHistory.py b/lldb/test/functionalities/command_history/TestCommandHistory.py
index 4ed7c579c4b..ac88e330e0f 100644
--- a/lldb/test/functionalities/command_history/TestCommandHistory.py
+++ b/lldb/test/functionalities/command_history/TestCommandHistory.py
@@ -10,7 +10,7 @@ from lldbtest import *
class CommandHistoryTestCase(TestBase):
- mydir = os.path.join("functionalities", "command_history")
+ mydir = TestBase.compute_mydir(__file__)
def test_history(self):
self.runCmd('command history --clear', inHistory=False)
diff --git a/lldb/test/functionalities/command_regex/TestCommandRegex.py b/lldb/test/functionalities/command_regex/TestCommandRegex.py
index c2fe66b1cbd..6052b0f7f64 100644
--- a/lldb/test/functionalities/command_regex/TestCommandRegex.py
+++ b/lldb/test/functionalities/command_regex/TestCommandRegex.py
@@ -10,7 +10,7 @@ from lldbtest import *
class CommandRegexTestCase(TestBase):
- mydir = os.path.join("functionalities", "command_regex")
+ mydir = TestBase.compute_mydir(__file__)
def test_command_regex(self):
"""Test a simple scenario of 'command regexp' invocation and subsequent use."""
diff --git a/lldb/test/functionalities/command_script/TestCommandScript.py b/lldb/test/functionalities/command_script/TestCommandScript.py
index bbc9e783565..63f67b24d86 100644
--- a/lldb/test/functionalities/command_script/TestCommandScript.py
+++ b/lldb/test/functionalities/command_script/TestCommandScript.py
@@ -9,7 +9,7 @@ from lldbtest import *
class CmdPythonTestCase(TestBase):
- mydir = os.path.join("functionalities", "command_script")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/command_script/import/TestImport.py b/lldb/test/functionalities/command_script/import/TestImport.py
index 07b0b07d82d..393285b7c6c 100644
--- a/lldb/test/functionalities/command_script/import/TestImport.py
+++ b/lldb/test/functionalities/command_script/import/TestImport.py
@@ -7,7 +7,7 @@ from lldbtest import *
class ImportTestCase(TestBase):
- mydir = os.path.join("functionalities", "command_script", "import")
+ mydir = TestBase.compute_mydir(__file__)
@python_api_test
def test_import_command(self):
diff --git a/lldb/test/functionalities/command_script/import/rdar-12586188/TestRdar12586188.py b/lldb/test/functionalities/command_script/import/rdar-12586188/TestRdar12586188.py
index dc4790605b2..e940261f4d2 100644
--- a/lldb/test/functionalities/command_script/import/rdar-12586188/TestRdar12586188.py
+++ b/lldb/test/functionalities/command_script/import/rdar-12586188/TestRdar12586188.py
@@ -7,7 +7,7 @@ from lldbtest import *
class Rdar12586188TestCase(TestBase):
- mydir = os.path.join("functionalities", "command_script", "import", "rdar-12586188")
+ mydir = TestBase.compute_mydir(__file__)
@python_api_test
def test_rdar12586188_command(self):
diff --git a/lldb/test/functionalities/command_source/TestCommandSource.py b/lldb/test/functionalities/command_source/TestCommandSource.py
index 26138bb31be..c3eeee6fc56 100644
--- a/lldb/test/functionalities/command_source/TestCommandSource.py
+++ b/lldb/test/functionalities/command_source/TestCommandSource.py
@@ -11,7 +11,7 @@ from lldbtest import *
class CommandSourceTestCase(TestBase):
- mydir = os.path.join("functionalities", "command_source")
+ mydir = TestBase.compute_mydir(__file__)
def test_command_source(self):
"""Test that lldb command "command source" works correctly."""
diff --git a/lldb/test/functionalities/completion/TestCompletion.py b/lldb/test/functionalities/completion/TestCompletion.py
index 2017a3090f4..7d99448a9df 100644
--- a/lldb/test/functionalities/completion/TestCompletion.py
+++ b/lldb/test/functionalities/completion/TestCompletion.py
@@ -10,7 +10,7 @@ from lldbtest import *
class CommandLineCompletionTestCase(TestBase):
- mydir = os.path.join("functionalities", "completion")
+ mydir = TestBase.compute_mydir(__file__)
@classmethod
def classCleanup(cls):
diff --git a/lldb/test/functionalities/conditional_break/TestConditionalBreak.py b/lldb/test/functionalities/conditional_break/TestConditionalBreak.py
index ed0a8042d7f..d6644323bdd 100644
--- a/lldb/test/functionalities/conditional_break/TestConditionalBreak.py
+++ b/lldb/test/functionalities/conditional_break/TestConditionalBreak.py
@@ -15,7 +15,7 @@ from lldbtest import *
class ConditionalBreakTestCase(TestBase):
- mydir = os.path.join("functionalities", "conditional_break")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
diff --git a/lldb/test/functionalities/connect_remote/TestConnectRemote.py b/lldb/test/functionalities/connect_remote/TestConnectRemote.py
index fa32db4d177..3168285cd0f 100644
--- a/lldb/test/functionalities/connect_remote/TestConnectRemote.py
+++ b/lldb/test/functionalities/connect_remote/TestConnectRemote.py
@@ -10,7 +10,7 @@ from lldbtest import *
class ConnectRemoteTestCase(TestBase):
- mydir = os.path.join("functionalities", "connect_remote")
+ mydir = TestBase.compute_mydir(__file__)
def test_connect_remote(self):
"""Test "process connect connect:://localhost:12345"."""
diff --git a/lldb/test/functionalities/data-formatter/data-formatter-advanced/TestDataFormatterAdv.py b/lldb/test/functionalities/data-formatter/data-formatter-advanced/TestDataFormatterAdv.py
index 30a76928ea8..694ced9fc4b 100644
--- a/lldb/test/functionalities/data-formatter/data-formatter-advanced/TestDataFormatterAdv.py
+++ b/lldb/test/functionalities/data-formatter/data-formatter-advanced/TestDataFormatterAdv.py
@@ -10,7 +10,7 @@ import lldbutil
class AdvDataFormatterTestCase(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "data-formatter-advanced")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/data-formatter-categories/TestDataFormatterCategories.py b/lldb/test/functionalities/data-formatter/data-formatter-categories/TestDataFormatterCategories.py
index 389a5e06e60..18b9837aca0 100644
--- a/lldb/test/functionalities/data-formatter/data-formatter-categories/TestDataFormatterCategories.py
+++ b/lldb/test/functionalities/data-formatter/data-formatter-categories/TestDataFormatterCategories.py
@@ -10,7 +10,7 @@ import lldbutil
class CategoriesDataFormatterTestCase(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "data-formatter-categories")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/data-formatter-cpp/TestDataFormatterCpp.py b/lldb/test/functionalities/data-formatter/data-formatter-cpp/TestDataFormatterCpp.py
index 78dc41086d0..2d6f888339b 100644
--- a/lldb/test/functionalities/data-formatter/data-formatter-cpp/TestDataFormatterCpp.py
+++ b/lldb/test/functionalities/data-formatter/data-formatter-cpp/TestDataFormatterCpp.py
@@ -10,7 +10,7 @@ import lldbutil
class CppDataFormatterTestCase(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "data-formatter-cpp")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/data-formatter-disabling/TestDataFormatterDisabling.py b/lldb/test/functionalities/data-formatter/data-formatter-disabling/TestDataFormatterDisabling.py
index cde9a4ec18a..d5a911a29a3 100644
--- a/lldb/test/functionalities/data-formatter/data-formatter-disabling/TestDataFormatterDisabling.py
+++ b/lldb/test/functionalities/data-formatter/data-formatter-disabling/TestDataFormatterDisabling.py
@@ -10,7 +10,7 @@ import lldbutil
class DataFormatterDisablingTestCase(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "data-formatter-disabling")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/data-formatter-globals/TestDataFormatterGlobals.py b/lldb/test/functionalities/data-formatter/data-formatter-globals/TestDataFormatterGlobals.py
index 47e7f71ef84..b8feee71b24 100644
--- a/lldb/test/functionalities/data-formatter/data-formatter-globals/TestDataFormatterGlobals.py
+++ b/lldb/test/functionalities/data-formatter/data-formatter-globals/TestDataFormatterGlobals.py
@@ -10,7 +10,7 @@ import lldbutil
class GlobalsDataFormatterTestCase(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "data-formatter-globals")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/data-formatter-named-summaries/TestDataFormatterNamedSummaries.py b/lldb/test/functionalities/data-formatter/data-formatter-named-summaries/TestDataFormatterNamedSummaries.py
index 6ab7f93067c..3564f6b3f4d 100644
--- a/lldb/test/functionalities/data-formatter/data-formatter-named-summaries/TestDataFormatterNamedSummaries.py
+++ b/lldb/test/functionalities/data-formatter/data-formatter-named-summaries/TestDataFormatterNamedSummaries.py
@@ -10,7 +10,7 @@ import lldbutil
class NamedSummariesDataFormatterTestCase(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "data-formatter-named-summaries")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjC.py b/lldb/test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjC.py
index 53590667e51..de5c3f29902 100644
--- a/lldb/test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjC.py
+++ b/lldb/test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjC.py
@@ -12,7 +12,7 @@ import lldbutil
class ObjCDataFormatterTestCase(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "data-formatter-objc")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/data-formatter-python-synth/TestDataFormatterPythonSynth.py b/lldb/test/functionalities/data-formatter/data-formatter-python-synth/TestDataFormatterPythonSynth.py
index 8bd276e47da..a44784a4db9 100644
--- a/lldb/test/functionalities/data-formatter/data-formatter-python-synth/TestDataFormatterPythonSynth.py
+++ b/lldb/test/functionalities/data-formatter/data-formatter-python-synth/TestDataFormatterPythonSynth.py
@@ -10,7 +10,7 @@ import lldbutil
class PythonSynthDataFormatterTestCase(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "data-formatter-python-synth")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/data-formatter-script/TestDataFormatterScript.py b/lldb/test/functionalities/data-formatter/data-formatter-script/TestDataFormatterScript.py
index 2d167ac63bf..213951385e0 100644
--- a/lldb/test/functionalities/data-formatter/data-formatter-script/TestDataFormatterScript.py
+++ b/lldb/test/functionalities/data-formatter/data-formatter-script/TestDataFormatterScript.py
@@ -10,7 +10,7 @@ import lldbutil
class ScriptDataFormatterTestCase(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "data-formatter-script")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/data-formatter-skip-summary/TestDataFormatterSkipSummary.py b/lldb/test/functionalities/data-formatter/data-formatter-skip-summary/TestDataFormatterSkipSummary.py
index 2c203f647ec..b59f9f072b6 100644
--- a/lldb/test/functionalities/data-formatter/data-formatter-skip-summary/TestDataFormatterSkipSummary.py
+++ b/lldb/test/functionalities/data-formatter/data-formatter-skip-summary/TestDataFormatterSkipSummary.py
@@ -10,7 +10,7 @@ import lldbutil
class SkipSummaryDataFormatterTestCase(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "data-formatter-skip-summary")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/data-formatter-smart-array/TestDataFormatterSmartArray.py b/lldb/test/functionalities/data-formatter/data-formatter-smart-array/TestDataFormatterSmartArray.py
index 27ca2e1361c..9bebfa5904a 100644
--- a/lldb/test/functionalities/data-formatter/data-formatter-smart-array/TestDataFormatterSmartArray.py
+++ b/lldb/test/functionalities/data-formatter/data-formatter-smart-array/TestDataFormatterSmartArray.py
@@ -10,7 +10,7 @@ import lldbutil
class SmartArrayDataFormatterTestCase(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "data-formatter-smart-array")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/iterator/TestDataFormatterLibccIterator.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/iterator/TestDataFormatterLibccIterator.py
index 80157496a85..3a5fde1000f 100644
--- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/iterator/TestDataFormatterLibccIterator.py
+++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/iterator/TestDataFormatterLibccIterator.py
@@ -10,7 +10,7 @@ import lldbutil
class LibcxxIteratorDataFormatterTestCase(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "data-formatter-stl", "libcxx", "iterator")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/TestDataFormatterLibcxxList.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/TestDataFormatterLibcxxList.py
index 6939d79a526..9b3dd02d365 100644
--- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/TestDataFormatterLibcxxList.py
+++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/TestDataFormatterLibcxxList.py
@@ -10,7 +10,7 @@ import lldbutil
class LibcxxListDataFormatterTestCase(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "data-formatter-stl", "libcxx", "list")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/map/TestDataFormatterLibccMap.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/map/TestDataFormatterLibccMap.py
index a4668b5cfac..17ac44fc460 100644
--- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/map/TestDataFormatterLibccMap.py
+++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/map/TestDataFormatterLibccMap.py
@@ -10,7 +10,7 @@ import lldbutil
class LibcxxMapDataFormatterTestCase(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "data-formatter-stl", "libcxx", "map")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/multimap/TestDataFormatterLibccMultiMap.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/multimap/TestDataFormatterLibccMultiMap.py
index 8eddf1ce50c..bd4e7cef3fb 100644
--- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/multimap/TestDataFormatterLibccMultiMap.py
+++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/multimap/TestDataFormatterLibccMultiMap.py
@@ -10,7 +10,7 @@ import lldbutil
class LibcxxMultiMapDataFormatterTestCase(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "data-formatter-stl", "libcxx", "multimap")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/multiset/TestDataFormatterLibcxxMultiSet.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/multiset/TestDataFormatterLibcxxMultiSet.py
index 67db56026bf..84f1eb82575 100644
--- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/multiset/TestDataFormatterLibcxxMultiSet.py
+++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/multiset/TestDataFormatterLibcxxMultiSet.py
@@ -10,7 +10,7 @@ import lldbutil
class LibcxxMultiSetDataFormatterTestCase(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "data-formatter-stl", "libcxx", "multiset")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/set/TestDataFormatterLibcxxSet.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/set/TestDataFormatterLibcxxSet.py
index a60f7d11370..7c2b77e932f 100644
--- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/set/TestDataFormatterLibcxxSet.py
+++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/set/TestDataFormatterLibcxxSet.py
@@ -10,7 +10,7 @@ import lldbutil
class LibcxxSetDataFormatterTestCase(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "data-formatter-stl", "libcxx", "set")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/string/TestDataFormatterLibcxxString.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/string/TestDataFormatterLibcxxString.py
index 7b032f9ac6e..e906ead7a78 100644
--- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/string/TestDataFormatterLibcxxString.py
+++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/string/TestDataFormatterLibcxxString.py
@@ -11,7 +11,7 @@ import lldbutil
class LibcxxStringDataFormatterTestCase(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "data-formatter-stl", "libcxx", "string")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/unordered/TestDataFormatterUnordered.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/unordered/TestDataFormatterUnordered.py
index a5665534627..ac03705d105 100644
--- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/unordered/TestDataFormatterUnordered.py
+++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/unordered/TestDataFormatterUnordered.py
@@ -10,7 +10,7 @@ import lldbutil
class LibcxxMultiMapDataFormatterTestCase(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "data-formatter-stl", "libcxx", "unordered")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/vbool/TestDataFormatterLibcxxVBool.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/vbool/TestDataFormatterLibcxxVBool.py
index a1bc5d00c6d..799fb16c1d7 100644
--- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/vbool/TestDataFormatterLibcxxVBool.py
+++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/vbool/TestDataFormatterLibcxxVBool.py
@@ -10,7 +10,7 @@ import lldbutil
class LibcxxVBoolDataFormatterTestCase(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "data-formatter-stl", "libcxx", "vbool")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/vector/TestDataFormatterLibcxxVector.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/vector/TestDataFormatterLibcxxVector.py
index 56ab1394805..527bc264097 100644
--- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/vector/TestDataFormatterLibcxxVector.py
+++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/vector/TestDataFormatterLibcxxVector.py
@@ -10,7 +10,7 @@ import lldbutil
class LibcxxVectorDataFormatterTestCase(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "data-formatter-stl", "libcxx", "vector")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/iterator/TestDataFormatterStdIterator.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/iterator/TestDataFormatterStdIterator.py
index bf1a1af1d92..4d072e6a2d4 100644
--- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/iterator/TestDataFormatterStdIterator.py
+++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/iterator/TestDataFormatterStdIterator.py
@@ -10,7 +10,7 @@ import lldbutil
class StdIteratorDataFormatterTestCase(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "data-formatter-stl", "libstdcpp", "iterator")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/list/TestDataFormatterStdList.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/list/TestDataFormatterStdList.py
index 39b94f0e2a8..dea3871c05b 100644
--- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/list/TestDataFormatterStdList.py
+++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/list/TestDataFormatterStdList.py
@@ -10,7 +10,7 @@ import lldbutil
class StdListDataFormatterTestCase(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "data-formatter-stl", "libstdcpp", "list")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/map/TestDataFormatterStdMap.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/map/TestDataFormatterStdMap.py
index 1b0cc815802..414b5a0b6b8 100644
--- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/map/TestDataFormatterStdMap.py
+++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/map/TestDataFormatterStdMap.py
@@ -10,7 +10,7 @@ import lldbutil
class StdMapDataFormatterTestCase(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "data-formatter-stl", "libstdcpp", "map")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/string/TestDataFormatterStdString.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/string/TestDataFormatterStdString.py
index 52526d00837..56855a296a8 100644
--- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/string/TestDataFormatterStdString.py
+++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/string/TestDataFormatterStdString.py
@@ -11,7 +11,7 @@ import lldbutil
class StdStringDataFormatterTestCase(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "data-formatter-stl", "libstdcpp", "string")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vbool/TestDataFormatterStdVBool.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vbool/TestDataFormatterStdVBool.py
index 293c5d6fdb6..eb831ebb75c 100644
--- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vbool/TestDataFormatterStdVBool.py
+++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vbool/TestDataFormatterStdVBool.py
@@ -10,7 +10,7 @@ import lldbutil
class StdVBoolDataFormatterTestCase(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "data-formatter-stl", "libstdcpp", "vbool")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vector/TestDataFormatterStdVector.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vector/TestDataFormatterStdVector.py
index 773ce6ef9c0..161cb2f7a86 100644
--- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vector/TestDataFormatterStdVector.py
+++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vector/TestDataFormatterStdVector.py
@@ -10,7 +10,7 @@ import lldbutil
class StdVectorDataFormatterTestCase(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "data-formatter-stl", "libstdcpp", "vector")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/data-formatter-synth/TestDataFormatterSynth.py b/lldb/test/functionalities/data-formatter/data-formatter-synth/TestDataFormatterSynth.py
index bd96049f574..9c3bed1828a 100644
--- a/lldb/test/functionalities/data-formatter/data-formatter-synth/TestDataFormatterSynth.py
+++ b/lldb/test/functionalities/data-formatter/data-formatter-synth/TestDataFormatterSynth.py
@@ -10,7 +10,7 @@ import lldbutil
class SynthDataFormatterTestCase(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "data-formatter-synth")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/format-propagation/TestFormatPropagation.py b/lldb/test/functionalities/data-formatter/format-propagation/TestFormatPropagation.py
index 3c245123794..b8a7ba3a438 100644
--- a/lldb/test/functionalities/data-formatter/format-propagation/TestFormatPropagation.py
+++ b/lldb/test/functionalities/data-formatter/format-propagation/TestFormatPropagation.py
@@ -10,7 +10,7 @@ import lldbutil
class FormatPropagationTestCase(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "format-propagation")
+ mydir = TestBase.compute_mydir(__file__)
# rdar://problem/14035604
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
diff --git a/lldb/test/functionalities/data-formatter/rdar-10449092/Test-rdar-10449092.py b/lldb/test/functionalities/data-formatter/rdar-10449092/Test-rdar-10449092.py
index 15e1f7c67c5..cb463c94f5e 100644
--- a/lldb/test/functionalities/data-formatter/rdar-10449092/Test-rdar-10449092.py
+++ b/lldb/test/functionalities/data-formatter/rdar-10449092/Test-rdar-10449092.py
@@ -11,7 +11,7 @@ import lldbutil
class Radar10449092DataFormatterTestCase(TestBase):
# test for rdar://problem/10449092 ()
- mydir = os.path.join("functionalities", "data-formatter", "rdar-10449092")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/rdar-10642615/Test-rdar-10642615.py b/lldb/test/functionalities/data-formatter/rdar-10642615/Test-rdar-10642615.py
index 02dd44705f6..5af70a8e415 100644
--- a/lldb/test/functionalities/data-formatter/rdar-10642615/Test-rdar-10642615.py
+++ b/lldb/test/functionalities/data-formatter/rdar-10642615/Test-rdar-10642615.py
@@ -11,7 +11,7 @@ import lldbutil
class Radar10642615DataFormatterTestCase(TestBase):
# test for rdar://problem/10642615 ()
- mydir = os.path.join("functionalities", "data-formatter", "rdar-10642615")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/rdar-10887661/TestRdar10887661.py b/lldb/test/functionalities/data-formatter/rdar-10887661/TestRdar10887661.py
index 16db113d483..a662f142104 100644
--- a/lldb/test/functionalities/data-formatter/rdar-10887661/TestRdar10887661.py
+++ b/lldb/test/functionalities/data-formatter/rdar-10887661/TestRdar10887661.py
@@ -10,7 +10,7 @@ import lldbutil
class Rdar10887661TestCase(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "rdar-10887661")
+ mydir = TestBase.compute_mydir(__file__)
# rdar://problem/10887661
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
diff --git a/lldb/test/functionalities/data-formatter/rdar-11086338/TestRdar11086338.py b/lldb/test/functionalities/data-formatter/rdar-11086338/TestRdar11086338.py
index e31572817b5..3f6dc27b634 100644
--- a/lldb/test/functionalities/data-formatter/rdar-11086338/TestRdar11086338.py
+++ b/lldb/test/functionalities/data-formatter/rdar-11086338/TestRdar11086338.py
@@ -11,7 +11,7 @@ import lldbutil
class DataFormatterRdar11086338TestCase(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "rdar-11086338")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/rdar-11628688/TestFormattersBoolRefPtr.py b/lldb/test/functionalities/data-formatter/rdar-11628688/TestFormattersBoolRefPtr.py
index 0d417a2dc24..a3b90823473 100644
--- a/lldb/test/functionalities/data-formatter/rdar-11628688/TestFormattersBoolRefPtr.py
+++ b/lldb/test/functionalities/data-formatter/rdar-11628688/TestFormattersBoolRefPtr.py
@@ -11,7 +11,7 @@ import lldbutil
class DataFormatterOSTypeTestCase(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "rdar-11628688")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/rdar-11773899/TestFormattersBoolRefPtr.py b/lldb/test/functionalities/data-formatter/rdar-11773899/TestFormattersBoolRefPtr.py
index f2a76f8eff9..99e6953b6ba 100644
--- a/lldb/test/functionalities/data-formatter/rdar-11773899/TestFormattersBoolRefPtr.py
+++ b/lldb/test/functionalities/data-formatter/rdar-11773899/TestFormattersBoolRefPtr.py
@@ -11,7 +11,7 @@ import lldbutil
class DataFormatterBoolRefPtr(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "rdar-11773899")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/rdar-11988289/TestRdar 11988289.py b/lldb/test/functionalities/data-formatter/rdar-11988289/TestRdar 11988289.py
index 38226ca14da..4a8829f2079 100644
--- a/lldb/test/functionalities/data-formatter/rdar-11988289/TestRdar 11988289.py
+++ b/lldb/test/functionalities/data-formatter/rdar-11988289/TestRdar 11988289.py
@@ -11,7 +11,7 @@ import lldbutil
class DataFormatterRdar11988289TestCase(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "rdar-11988289")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/rdar-12437442/TestRdar12437442.py b/lldb/test/functionalities/data-formatter/rdar-12437442/TestRdar12437442.py
index 2205dfd4e7e..86d88ab0b03 100644
--- a/lldb/test/functionalities/data-formatter/rdar-12437442/TestRdar12437442.py
+++ b/lldb/test/functionalities/data-formatter/rdar-12437442/TestRdar12437442.py
@@ -11,7 +11,7 @@ import lldbutil
class DataFormatterRdar12437442TestCase(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "rdar-12437442")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/rdar-12529957/TestRdar12529957.py b/lldb/test/functionalities/data-formatter/rdar-12529957/TestRdar12529957.py
index dc3cfb437d7..326c5d60c29 100644
--- a/lldb/test/functionalities/data-formatter/rdar-12529957/TestRdar12529957.py
+++ b/lldb/test/functionalities/data-formatter/rdar-12529957/TestRdar12529957.py
@@ -11,7 +11,7 @@ import lldbutil
class DataFormatterRdar12529957TestCase(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "rdar-12529957")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/rdar-13338477/Test-rdar-13338477.py b/lldb/test/functionalities/data-formatter/rdar-13338477/Test-rdar-13338477.py
index e65cb8b3d5c..cc936ba03bb 100644
--- a/lldb/test/functionalities/data-formatter/rdar-13338477/Test-rdar-13338477.py
+++ b/lldb/test/functionalities/data-formatter/rdar-13338477/Test-rdar-13338477.py
@@ -11,7 +11,7 @@ import lldbutil
class Radar13338477DataFormatterTestCase(TestBase):
# test for rdar://problem/13338477 ()
- mydir = os.path.join("functionalities", "data-formatter", "rdar-13338477")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/rdar-3534688/TestFormattersOneIsSingular.py b/lldb/test/functionalities/data-formatter/rdar-3534688/TestFormattersOneIsSingular.py
index de274331451..42026ef9f2b 100644
--- a/lldb/test/functionalities/data-formatter/rdar-3534688/TestFormattersOneIsSingular.py
+++ b/lldb/test/functionalities/data-formatter/rdar-3534688/TestFormattersOneIsSingular.py
@@ -11,7 +11,7 @@ import lldbutil
class DataFormatterOneIsSingularTestCase(TestBase):
- mydir = os.path.join("functionalities", "data-formatter", "rdar-3534688")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/rdar-9973865/Test-rdar-9973865.py b/lldb/test/functionalities/data-formatter/rdar-9973865/Test-rdar-9973865.py
index 0aa619bf0f3..aa9772b69ef 100644
--- a/lldb/test/functionalities/data-formatter/rdar-9973865/Test-rdar-9973865.py
+++ b/lldb/test/functionalities/data-formatter/rdar-9973865/Test-rdar-9973865.py
@@ -11,7 +11,7 @@ import lldbutil
class Radar9973865DataFormatterTestCase(TestBase):
# test for rdar://problem/9973865 (If you use "${var}" in the summary string for an aggregate type, the summary doesn't print for a pointer to that type)
- mydir = os.path.join("functionalities", "data-formatter", "rdar-9973865")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/rdar-9973992/Test-rdar-9973992.py b/lldb/test/functionalities/data-formatter/rdar-9973992/Test-rdar-9973992.py
index e4142b6bbc0..81bc93cade5 100644
--- a/lldb/test/functionalities/data-formatter/rdar-9973992/Test-rdar-9973992.py
+++ b/lldb/test/functionalities/data-formatter/rdar-9973992/Test-rdar-9973992.py
@@ -11,7 +11,7 @@ import lldbutil
class Radar9973992DataFormatterTestCase(TestBase):
# test for rdar://problem/9973992 (What should we do for "${var}" in summaries of aggregate types?)
- mydir = os.path.join("functionalities", "data-formatter", "rdar-9973992")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/data-formatter/rdar-9974002/Test-rdar-9974002.py b/lldb/test/functionalities/data-formatter/rdar-9974002/Test-rdar-9974002.py
index 8aa2d112bd6..a03a07a183c 100644
--- a/lldb/test/functionalities/data-formatter/rdar-9974002/Test-rdar-9974002.py
+++ b/lldb/test/functionalities/data-formatter/rdar-9974002/Test-rdar-9974002.py
@@ -11,7 +11,7 @@ import lldbutil
class Radar9974002DataFormatterTestCase(TestBase):
# test for rdar://problem/9974002 ()
- mydir = os.path.join("functionalities", "data-formatter", "rdar-9974002")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/dead-strip/TestDeadStrip.py b/lldb/test/functionalities/dead-strip/TestDeadStrip.py
index 6da02fbf28d..1371953b32f 100644
--- a/lldb/test/functionalities/dead-strip/TestDeadStrip.py
+++ b/lldb/test/functionalities/dead-strip/TestDeadStrip.py
@@ -10,7 +10,7 @@ import lldbutil
class DeadStripTestCase(TestBase):
- mydir = os.path.join("functionalities", "dead-strip")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/embedded_interpreter/TestConvenienceVariables.py b/lldb/test/functionalities/embedded_interpreter/TestConvenienceVariables.py
index 5ab7ada2032..71870e324aa 100644
--- a/lldb/test/functionalities/embedded_interpreter/TestConvenienceVariables.py
+++ b/lldb/test/functionalities/embedded_interpreter/TestConvenienceVariables.py
@@ -8,7 +8,7 @@ from lldbtest import *
class ConvenienceVariablesCase(TestBase):
- mydir = os.path.join("functionalities", "embedded_interpreter")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/exec/TestExec.py b/lldb/test/functionalities/exec/TestExec.py
index e9a0dca7446..9d5ad1b3279 100644
--- a/lldb/test/functionalities/exec/TestExec.py
+++ b/lldb/test/functionalities/exec/TestExec.py
@@ -19,7 +19,7 @@ def execute_command (command):
class ExecTestCase(TestBase):
- mydir = os.path.join("functionalities", "exec")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
diff --git a/lldb/test/functionalities/expr-doesnt-deadlock/TestExprDoesntBlock.py b/lldb/test/functionalities/expr-doesnt-deadlock/TestExprDoesntBlock.py
index 4af70bb0638..5862a347deb 100644
--- a/lldb/test/functionalities/expr-doesnt-deadlock/TestExprDoesntBlock.py
+++ b/lldb/test/functionalities/expr-doesnt-deadlock/TestExprDoesntBlock.py
@@ -13,7 +13,7 @@ class ExprDoesntDeadlockTestCase(TestBase):
def getCategories(self):
return ['basic_process']
- mydir = os.path.join("functionalities", "expr-doesnt-deadlock")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/fat_archives/TestFatArchives.py b/lldb/test/functionalities/fat_archives/TestFatArchives.py
index 13146edd724..a878cc4c5d9 100644
--- a/lldb/test/functionalities/fat_archives/TestFatArchives.py
+++ b/lldb/test/functionalities/fat_archives/TestFatArchives.py
@@ -19,7 +19,7 @@ def execute_command (command):
class FatArchiveTestCase(TestBase):
- mydir = os.path.join("functionalities", "fat_archives")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dwarf_test
diff --git a/lldb/test/functionalities/inferior-assert/TestInferiorAssert.py b/lldb/test/functionalities/inferior-assert/TestInferiorAssert.py
index 1dc5aad2ca6..9c6dd6f21ab 100644
--- a/lldb/test/functionalities/inferior-assert/TestInferiorAssert.py
+++ b/lldb/test/functionalities/inferior-assert/TestInferiorAssert.py
@@ -7,7 +7,7 @@ from lldbtest import *
class AssertingInferiorTestCase(TestBase):
- mydir = os.path.join("functionalities", "inferior-assert")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@unittest2.expectedFailure("rdar://15367233")
diff --git a/lldb/test/functionalities/inferior-changed/TestInferiorChanged.py b/lldb/test/functionalities/inferior-changed/TestInferiorChanged.py
index fb01e9a2d6a..883be93a6f5 100644
--- a/lldb/test/functionalities/inferior-changed/TestInferiorChanged.py
+++ b/lldb/test/functionalities/inferior-changed/TestInferiorChanged.py
@@ -8,7 +8,7 @@ import lldbutil
class ChangedInferiorTestCase(TestBase):
- mydir = os.path.join("functionalities", "inferior-changed")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
def test_inferior_crashing_dsym(self):
diff --git a/lldb/test/functionalities/inferior-crashing/TestInferiorCrashing.py b/lldb/test/functionalities/inferior-crashing/TestInferiorCrashing.py
index e807224112a..af0abae467d 100644
--- a/lldb/test/functionalities/inferior-crashing/TestInferiorCrashing.py
+++ b/lldb/test/functionalities/inferior-crashing/TestInferiorCrashing.py
@@ -7,7 +7,7 @@ from lldbtest import *
class CrashingInferiorTestCase(TestBase):
- mydir = os.path.join("functionalities", "inferior-crashing")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
def test_inferior_crashing_dsym(self):
diff --git a/lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py b/lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py
index ac44528e15c..f79e99d4766 100644
--- a/lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py
+++ b/lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py
@@ -7,7 +7,7 @@ from lldbtest import *
class CrashingRecursiveInferiorTestCase(TestBase):
- mydir = os.path.join("functionalities", "inferior-crashing", "recursive-inferior")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
def test_recursive_inferior_crashing_dsym(self):
diff --git a/lldb/test/functionalities/inline-stepping/TestInlineStepping.py b/lldb/test/functionalities/inline-stepping/TestInlineStepping.py
index 6726090a29b..a13331bf61e 100644
--- a/lldb/test/functionalities/inline-stepping/TestInlineStepping.py
+++ b/lldb/test/functionalities/inline-stepping/TestInlineStepping.py
@@ -8,7 +8,7 @@ from lldbtest import *
class TestInlineStepping(TestBase):
- mydir = os.path.join("functionalities", "inline-stepping")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
diff --git a/lldb/test/functionalities/load_unload/TestLoadUnload.py b/lldb/test/functionalities/load_unload/TestLoadUnload.py
index b54c2da4aed..96e0e16204f 100644
--- a/lldb/test/functionalities/load_unload/TestLoadUnload.py
+++ b/lldb/test/functionalities/load_unload/TestLoadUnload.py
@@ -14,7 +14,7 @@ class LoadUnloadTestCase(TestBase):
def getCategories (self):
return ['basic_process']
- mydir = os.path.join("functionalities", "load_unload")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/functionalities/longjmp/TestLongjmp.py b/lldb/test/functionalities/longjmp/TestLongjmp.py
index 48b17cb8e69..c7f3bf0a092 100644
--- a/lldb/test/functionalities/longjmp/TestLongjmp.py
+++ b/lldb/test/functionalities/longjmp/TestLongjmp.py
@@ -10,7 +10,7 @@ from lldbtest import *
class LongjmpTestCase(TestBase):
- mydir = os.path.join("functionalities", "longjmp")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
TestBase.setUp(self)
diff --git a/lldb/test/functionalities/memory/read/TestMemoryRead.py b/lldb/test/functionalities/memory/read/TestMemoryRead.py
index dbbc9b88793..a9fe6c27965 100644
--- a/lldb/test/functionalities/memory/read/TestMemoryRead.py
+++ b/lldb/test/functionalities/memory/read/TestMemoryRead.py
@@ -11,7 +11,7 @@ import lldbutil
class MemoryReadTestCase(TestBase):
- mydir = os.path.join("functionalities", "memory", "read")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/non-overlapping-index-variable-i/TestIndexVariable.py b/lldb/test/functionalities/non-overlapping-index-variable-i/TestIndexVariable.py
index 55c618432c6..d2a127e999d 100644
--- a/lldb/test/functionalities/non-overlapping-index-variable-i/TestIndexVariable.py
+++ b/lldb/test/functionalities/non-overlapping-index-variable-i/TestIndexVariable.py
@@ -8,7 +8,7 @@ import lldbutil
class NonOverlappingIndexVariableCase(TestBase):
- mydir = os.path.join("functionalities", "non-overlapping-index-variable-i")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
TestBase.setUp(self)
diff --git a/lldb/test/functionalities/platform/TestPlatformCommand.py b/lldb/test/functionalities/platform/TestPlatformCommand.py
index 3fe776e07d7..e1ea9377acd 100644
--- a/lldb/test/functionalities/platform/TestPlatformCommand.py
+++ b/lldb/test/functionalities/platform/TestPlatformCommand.py
@@ -9,7 +9,7 @@ from lldbtest import *
class PlatformCommandTestCase(TestBase):
- mydir = os.path.join("functionalities", "platform")
+ mydir = TestBase.compute_mydir(__file__)
def test_help_platform(self):
self.runCmd("help platform")
diff --git a/lldb/test/functionalities/plugins/commands/TestPluginCommands.py b/lldb/test/functionalities/plugins/commands/TestPluginCommands.py
index e306ebb7128..a73f00ca1c6 100644
--- a/lldb/test/functionalities/plugins/commands/TestPluginCommands.py
+++ b/lldb/test/functionalities/plugins/commands/TestPluginCommands.py
@@ -11,7 +11,7 @@ import lldbutil
class PluginCommandTestCase(TestBase):
- mydir = os.path.join("functionalities", "plugins", "commands")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/functionalities/process_attach/TestProcessAttach.py b/lldb/test/functionalities/process_attach/TestProcessAttach.py
index 6e33eaa342e..b7e7604238f 100644
--- a/lldb/test/functionalities/process_attach/TestProcessAttach.py
+++ b/lldb/test/functionalities/process_attach/TestProcessAttach.py
@@ -10,7 +10,7 @@ import lldbutil
class ProcessAttachTestCase(TestBase):
- mydir = os.path.join("functionalities", "process_attach")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/process_launch/TestProcessLaunch.py b/lldb/test/functionalities/process_launch/TestProcessLaunch.py
index e7f83d1818b..a648978862a 100644
--- a/lldb/test/functionalities/process_launch/TestProcessLaunch.py
+++ b/lldb/test/functionalities/process_launch/TestProcessLaunch.py
@@ -9,7 +9,7 @@ from lldbtest import *
class ProcessLaunchTestCase(TestBase):
- mydir = os.path.join("functionalities", "process_launch")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/functionalities/recursion/TestValueObjectRecursion.py b/lldb/test/functionalities/recursion/TestValueObjectRecursion.py
index 1bca9999ea9..e20ee9bd5b6 100644
--- a/lldb/test/functionalities/recursion/TestValueObjectRecursion.py
+++ b/lldb/test/functionalities/recursion/TestValueObjectRecursion.py
@@ -10,7 +10,7 @@ import lldbutil
class ValueObjectRecursionTestCase(TestBase):
- mydir = os.path.join("functionalities", "recursion")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/register/TestRegisters.py b/lldb/test/functionalities/register/TestRegisters.py
index 01e09907431..34530ab3c91 100644
--- a/lldb/test/functionalities/register/TestRegisters.py
+++ b/lldb/test/functionalities/register/TestRegisters.py
@@ -11,7 +11,7 @@ import lldbutil
class RegisterCommandsTestCase(TestBase):
- mydir = os.path.join("functionalities", "register")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
TestBase.setUp(self)
diff --git a/lldb/test/functionalities/return-value/TestReturnValue.py b/lldb/test/functionalities/return-value/TestReturnValue.py
index c520c503458..ff138f2a245 100644
--- a/lldb/test/functionalities/return-value/TestReturnValue.py
+++ b/lldb/test/functionalities/return-value/TestReturnValue.py
@@ -10,7 +10,7 @@ from lldbtest import *
class ReturnValueTestCase(TestBase):
- mydir = os.path.join("functionalities", "return-value")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@expectedFailurei386
diff --git a/lldb/test/functionalities/set-data/TestSetData.py b/lldb/test/functionalities/set-data/TestSetData.py
index 166ef6706fc..d94d3e870db 100644
--- a/lldb/test/functionalities/set-data/TestSetData.py
+++ b/lldb/test/functionalities/set-data/TestSetData.py
@@ -11,7 +11,7 @@ import lldbutil
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
class SetDataTestCase(TestBase):
- mydir = os.path.join("functionalities", "set-data")
+ mydir = TestBase.compute_mydir(__file__)
@dsym_test
def test_set_data_dsym(self):
diff --git a/lldb/test/functionalities/signal/TestSendSignal.py b/lldb/test/functionalities/signal/TestSendSignal.py
index 0c51224ca3d..f5868291468 100644
--- a/lldb/test/functionalities/signal/TestSendSignal.py
+++ b/lldb/test/functionalities/signal/TestSendSignal.py
@@ -8,7 +8,7 @@ import lldbutil
class SendSignalTestCase(TestBase):
- mydir = os.path.join("functionalities", "signal")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/single-quote-in-filename-to-lldb/TestSingleQuoteInFilename.py b/lldb/test/functionalities/single-quote-in-filename-to-lldb/TestSingleQuoteInFilename.py
index eb7abc27653..ba696ad9c31 100644
--- a/lldb/test/functionalities/single-quote-in-filename-to-lldb/TestSingleQuoteInFilename.py
+++ b/lldb/test/functionalities/single-quote-in-filename-to-lldb/TestSingleQuoteInFilename.py
@@ -10,7 +10,7 @@ from lldbtest import *
class SingleQuoteInCommandLineTestCase(TestBase):
- mydir = os.path.join("functionalities", "single-quote-in-filename-to-lldb")
+ mydir = TestBase.compute_mydir(__file__)
myexe = "path with '09/a.out"
@classmethod
diff --git a/lldb/test/functionalities/stop-hook/TestStopHookCmd.py b/lldb/test/functionalities/stop-hook/TestStopHookCmd.py
index 8ef3bf50a81..0605dee7af4 100644
--- a/lldb/test/functionalities/stop-hook/TestStopHookCmd.py
+++ b/lldb/test/functionalities/stop-hook/TestStopHookCmd.py
@@ -11,7 +11,7 @@ import lldbutil
class StopHookCmdTestCase(TestBase):
- mydir = os.path.join("functionalities", "stop-hook")
+ mydir = TestBase.compute_mydir(__file__)
# Regression test.
def test_not_crashing_if_no_target(self):
diff --git a/lldb/test/functionalities/stop-hook/TestStopHookMechanism.py b/lldb/test/functionalities/stop-hook/TestStopHookMechanism.py
index 29573048208..fd2ef83210f 100644
--- a/lldb/test/functionalities/stop-hook/TestStopHookMechanism.py
+++ b/lldb/test/functionalities/stop-hook/TestStopHookMechanism.py
@@ -10,7 +10,7 @@ from lldbtest import *
class StopHookMechanismTestCase(TestBase):
- mydir = os.path.join("functionalities", "stop-hook")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/stop-hook/multiple_threads/TestStopHookMultipleThreads.py b/lldb/test/functionalities/stop-hook/multiple_threads/TestStopHookMultipleThreads.py
index b7f2b53e5bb..f2a90e0ac5e 100644
--- a/lldb/test/functionalities/stop-hook/multiple_threads/TestStopHookMultipleThreads.py
+++ b/lldb/test/functionalities/stop-hook/multiple_threads/TestStopHookMultipleThreads.py
@@ -10,7 +10,7 @@ from lldbtest import *
class StopHookForMultipleThreadsTestCase(TestBase):
- mydir = os.path.join("functionalities", "stop-hook", "multiple_threads")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/target_command/TestTargetCommand.py b/lldb/test/functionalities/target_command/TestTargetCommand.py
index 5b656f7fffd..694f7e155e5 100644
--- a/lldb/test/functionalities/target_command/TestTargetCommand.py
+++ b/lldb/test/functionalities/target_command/TestTargetCommand.py
@@ -10,7 +10,7 @@ import lldbutil
class targetCommandTestCase(TestBase):
- mydir = os.path.join("functionalities", "target_command")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/functionalities/thread/TestNumThreads.py b/lldb/test/functionalities/thread/TestNumThreads.py
index 011e20a7fc5..c6d7bb5871c 100644
--- a/lldb/test/functionalities/thread/TestNumThreads.py
+++ b/lldb/test/functionalities/thread/TestNumThreads.py
@@ -10,7 +10,7 @@ import lldbutil
class NumberOfThreadsTestCase(TestBase):
- mydir = os.path.join("functionalities", "thread")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/thread/break_after_join/TestBreakAfterJoin.py b/lldb/test/functionalities/thread/break_after_join/TestBreakAfterJoin.py
index 0cc34247c98..24db482991d 100644
--- a/lldb/test/functionalities/thread/break_after_join/TestBreakAfterJoin.py
+++ b/lldb/test/functionalities/thread/break_after_join/TestBreakAfterJoin.py
@@ -10,7 +10,7 @@ import lldbutil
class BreakpointAfterJoinTestCase(TestBase):
- mydir = os.path.join("functionalities", "thread", "break_after_join")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@expectedFailureDarwin("llvm.org/pr15824") # thread states not properly maintained
diff --git a/lldb/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py b/lldb/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py
index b565d0abbef..a217e4a81c2 100644
--- a/lldb/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py
+++ b/lldb/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py
@@ -25,7 +25,7 @@ signal_names = dict((getattr(signal, n), n) \
class ConcurrentEventsTestCase(TestBase):
- mydir = os.path.join("functionalities", "thread", "concurrent_events")
+ mydir = TestBase.compute_mydir(__file__)
#
## Tests for multiple threads that generate a single event.
diff --git a/lldb/test/functionalities/thread/create_after_attach/TestCreateAfterAttach.py b/lldb/test/functionalities/thread/create_after_attach/TestCreateAfterAttach.py
index fc5d01c15ef..530efafff88 100644
--- a/lldb/test/functionalities/thread/create_after_attach/TestCreateAfterAttach.py
+++ b/lldb/test/functionalities/thread/create_after_attach/TestCreateAfterAttach.py
@@ -10,7 +10,7 @@ import lldbutil
class CreateAfterAttachTestCase(TestBase):
- mydir = os.path.join("functionalities", "thread", "create_after_attach")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/thread/create_during_step/TestCreateDuringStep.py b/lldb/test/functionalities/thread/create_during_step/TestCreateDuringStep.py
index fd7fe0ca973..e98c19b9ee9 100644
--- a/lldb/test/functionalities/thread/create_during_step/TestCreateDuringStep.py
+++ b/lldb/test/functionalities/thread/create_during_step/TestCreateDuringStep.py
@@ -10,7 +10,7 @@ import lldbutil
class CreateDuringStepTestCase(TestBase):
- mydir = os.path.join("functionalities", "thread", "create_during_step")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@expectedFailureDarwin("llvm.org/pr15824") # thread states not properly maintained
diff --git a/lldb/test/functionalities/thread/exit_during_break/TestExitDuringBreak.py b/lldb/test/functionalities/thread/exit_during_break/TestExitDuringBreak.py
index 9aec8b0dd89..1726f2ff98d 100644
--- a/lldb/test/functionalities/thread/exit_during_break/TestExitDuringBreak.py
+++ b/lldb/test/functionalities/thread/exit_during_break/TestExitDuringBreak.py
@@ -10,7 +10,7 @@ import lldbutil
class ExitDuringBreakpointTestCase(TestBase):
- mydir = os.path.join("functionalities", "thread", "exit_during_break")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@expectedFailureDarwin("llvm.org/pr15824") # thread states not properly maintained
diff --git a/lldb/test/functionalities/thread/exit_during_step/TestExitDuringStep.py b/lldb/test/functionalities/thread/exit_during_step/TestExitDuringStep.py
index db23bee546f..4a4718a529a 100644
--- a/lldb/test/functionalities/thread/exit_during_step/TestExitDuringStep.py
+++ b/lldb/test/functionalities/thread/exit_during_step/TestExitDuringStep.py
@@ -10,7 +10,7 @@ import lldbutil
class ExitDuringStepTestCase(TestBase):
- mydir = os.path.join("functionalities", "thread", "exit_during_step")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@expectedFailureDarwin("llvm.org/pr15824") # thread states not properly maintained
diff --git a/lldb/test/functionalities/thread/jump/TestThreadJump.py b/lldb/test/functionalities/thread/jump/TestThreadJump.py
index 47e48fd0568..f2122be9126 100644
--- a/lldb/test/functionalities/thread/jump/TestThreadJump.py
+++ b/lldb/test/functionalities/thread/jump/TestThreadJump.py
@@ -10,7 +10,7 @@ import lldbutil
class ThreadJumpTestCase(TestBase):
- mydir = os.path.join("functionalities", "thread", "jump")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/thread/multi_break/TestMultipleBreakpoints.py b/lldb/test/functionalities/thread/multi_break/TestMultipleBreakpoints.py
index ca76f05707d..d3a627bb2c5 100644
--- a/lldb/test/functionalities/thread/multi_break/TestMultipleBreakpoints.py
+++ b/lldb/test/functionalities/thread/multi_break/TestMultipleBreakpoints.py
@@ -10,7 +10,7 @@ import lldbutil
class MultipleBreakpointTestCase(TestBase):
- mydir = os.path.join("functionalities", "thread", "multi_break")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@expectedFailureDarwin("llvm.org/pr15824") # thread states not properly maintained
diff --git a/lldb/test/functionalities/thread/state/TestThreadStates.py b/lldb/test/functionalities/thread/state/TestThreadStates.py
index 7bdb91b98fe..4209893e772 100644
--- a/lldb/test/functionalities/thread/state/TestThreadStates.py
+++ b/lldb/test/functionalities/thread/state/TestThreadStates.py
@@ -10,7 +10,7 @@ import lldbutil
class ThreadStateTestCase(TestBase):
- mydir = os.path.join("functionalities", "thread", "state")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/thread/step_out/TestThreadStepOut.py b/lldb/test/functionalities/thread/step_out/TestThreadStepOut.py
index 9e47282aaed..40c0afd6e39 100644
--- a/lldb/test/functionalities/thread/step_out/TestThreadStepOut.py
+++ b/lldb/test/functionalities/thread/step_out/TestThreadStepOut.py
@@ -10,7 +10,7 @@ import lldbutil
class ThreadStepOutTestCase(TestBase):
- mydir = os.path.join("functionalities", "thread", "step_out")
+ mydir = TestBase.compute_mydir(__file__)
@dsym_test
def test_step_single_thread_with_dsym(self):
diff --git a/lldb/test/functionalities/thread/thread_exit/TestThreadExit.py b/lldb/test/functionalities/thread/thread_exit/TestThreadExit.py
index e6d0273fe50..1e30185cbdb 100644
--- a/lldb/test/functionalities/thread/thread_exit/TestThreadExit.py
+++ b/lldb/test/functionalities/thread/thread_exit/TestThreadExit.py
@@ -10,7 +10,7 @@ import lldbutil
class ThreadExitTestCase(TestBase):
- mydir = os.path.join("functionalities", "thread", "thread_exit")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@expectedFailureDarwin("llvm.org/pr15824") # thread states not properly maintained
diff --git a/lldb/test/functionalities/type_completion/TestTypeCompletion.py b/lldb/test/functionalities/type_completion/TestTypeCompletion.py
index 57ee91d7223..cdc637ee1fc 100644
--- a/lldb/test/functionalities/type_completion/TestTypeCompletion.py
+++ b/lldb/test/functionalities/type_completion/TestTypeCompletion.py
@@ -10,7 +10,7 @@ import lldbutil
class TypeCompletionTestCase(TestBase):
- mydir = os.path.join("functionalities", "type_completion")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/watchpoint/hello_watchlocation/TestWatchLocation.py b/lldb/test/functionalities/watchpoint/hello_watchlocation/TestWatchLocation.py
index 61541dc44e8..2245d8599f4 100644
--- a/lldb/test/functionalities/watchpoint/hello_watchlocation/TestWatchLocation.py
+++ b/lldb/test/functionalities/watchpoint/hello_watchlocation/TestWatchLocation.py
@@ -11,7 +11,7 @@ import lldbutil
class HelloWatchLocationTestCase(TestBase):
- mydir = os.path.join("functionalities", "watchpoint", "hello_watchlocation")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/watchpoint/hello_watchpoint/TestMyFirstWatchpoint.py b/lldb/test/functionalities/watchpoint/hello_watchpoint/TestMyFirstWatchpoint.py
index 4b4bdad2720..e66cd0a0b1b 100644
--- a/lldb/test/functionalities/watchpoint/hello_watchpoint/TestMyFirstWatchpoint.py
+++ b/lldb/test/functionalities/watchpoint/hello_watchpoint/TestMyFirstWatchpoint.py
@@ -13,7 +13,7 @@ class HelloWatchpointTestCase(TestBase):
def getCategories (self):
return ['basic_process']
- mydir = os.path.join("functionalities", "watchpoint", "hello_watchpoint")
+ mydir = TestBase.compute_mydir(__file__)
@dsym_test
def test_hello_watchpoint_with_dsym_using_watchpoint_set(self):
diff --git a/lldb/test/functionalities/watchpoint/multiple_threads/TestWatchpointMultipleThreads.py b/lldb/test/functionalities/watchpoint/multiple_threads/TestWatchpointMultipleThreads.py
index 597a308d7e5..bc36d47d66c 100644
--- a/lldb/test/functionalities/watchpoint/multiple_threads/TestWatchpointMultipleThreads.py
+++ b/lldb/test/functionalities/watchpoint/multiple_threads/TestWatchpointMultipleThreads.py
@@ -11,7 +11,7 @@ import lldbutil
class WatchpointForMultipleThreadsTestCase(TestBase):
- mydir = os.path.join("functionalities", "watchpoint", "multiple_threads")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/watchpoint/variable_out_of_scope/TestWatchedVarHitWhenInScope.py b/lldb/test/functionalities/watchpoint/variable_out_of_scope/TestWatchedVarHitWhenInScope.py
index ab50971ad65..c35220d007e 100644
--- a/lldb/test/functionalities/watchpoint/variable_out_of_scope/TestWatchedVarHitWhenInScope.py
+++ b/lldb/test/functionalities/watchpoint/variable_out_of_scope/TestWatchedVarHitWhenInScope.py
@@ -10,7 +10,7 @@ import lldbutil
class WatchedVariableHitWhenInScopeTestCase(TestBase):
- mydir = os.path.join("functionalities", "watchpoint", "variable_out_of_scope")
+ mydir = TestBase.compute_mydir(__file__)
#
# This test depends on not tracking watchpoint expression hits if we have
diff --git a/lldb/test/functionalities/watchpoint/watchpoint_commands/TestWatchpointCommands.py b/lldb/test/functionalities/watchpoint/watchpoint_commands/TestWatchpointCommands.py
index 460cf86bff7..f0ec916a8c3 100644
--- a/lldb/test/functionalities/watchpoint/watchpoint_commands/TestWatchpointCommands.py
+++ b/lldb/test/functionalities/watchpoint/watchpoint_commands/TestWatchpointCommands.py
@@ -10,7 +10,7 @@ import lldbutil
class WatchpointCommandsTestCase(TestBase):
- mydir = os.path.join("functionalities", "watchpoint", "watchpoint_commands")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py b/lldb/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py
index d39f9d4727c..b00a338d3ec 100644
--- a/lldb/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py
+++ b/lldb/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py
@@ -10,7 +10,7 @@ import lldbutil
class WatchpointLLDBCommandTestCase(TestBase):
- mydir = os.path.join("functionalities", "watchpoint", "watchpoint_commands", "command")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandPython.py b/lldb/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandPython.py
index e56d060a017..cfd958109b6 100644
--- a/lldb/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandPython.py
+++ b/lldb/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandPython.py
@@ -10,7 +10,7 @@ import lldbutil
class WatchpointPythonCommandTestCase(TestBase):
- mydir = os.path.join("functionalities", "watchpoint", "watchpoint_commands", "command")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/functionalities/watchpoint/watchpoint_commands/condition/TestWatchpointConditionCmd.py b/lldb/test/functionalities/watchpoint/watchpoint_commands/condition/TestWatchpointConditionCmd.py
index 959b417dd22..b3f6fcf464a 100644
--- a/lldb/test/functionalities/watchpoint/watchpoint_commands/condition/TestWatchpointConditionCmd.py
+++ b/lldb/test/functionalities/watchpoint/watchpoint_commands/condition/TestWatchpointConditionCmd.py
@@ -10,7 +10,7 @@ import lldbutil
class WatchpointConditionCmdTestCase(TestBase):
- mydir = os.path.join("functionalities", "watchpoint", "watchpoint_commands", "condition")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/functionalities/watchpoint/watchpoint_events/TestWatchpointEvents.py b/lldb/test/functionalities/watchpoint/watchpoint_events/TestWatchpointEvents.py
index ccc35532e45..094aa5e9e74 100644
--- a/lldb/test/functionalities/watchpoint/watchpoint_events/TestWatchpointEvents.py
+++ b/lldb/test/functionalities/watchpoint/watchpoint_events/TestWatchpointEvents.py
@@ -8,7 +8,7 @@ from lldbtest import *
class TestWatchpointEvents (TestBase):
- mydir = os.path.join("functionalities", "watchpoint", "watchpoint_events")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
diff --git a/lldb/test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py b/lldb/test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py
index 5f9199fbbaf..02178c7b270 100644
--- a/lldb/test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py
+++ b/lldb/test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py
@@ -10,7 +10,7 @@ import lldbutil
class WatchLocationUsingWatchpointSetTestCase(TestBase):
- mydir = os.path.join("functionalities", "watchpoint", "watchpoint_set_command")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/functionalities/watchpoint/watchpoint_set_command/TestWatchpointSetErrorCases.py b/lldb/test/functionalities/watchpoint/watchpoint_set_command/TestWatchpointSetErrorCases.py
index 6a24589804f..cf385ae7231 100644
--- a/lldb/test/functionalities/watchpoint/watchpoint_set_command/TestWatchpointSetErrorCases.py
+++ b/lldb/test/functionalities/watchpoint/watchpoint_set_command/TestWatchpointSetErrorCases.py
@@ -10,7 +10,7 @@ import lldbutil
class WatchpointSetErrorTestCase(TestBase):
- mydir = os.path.join("functionalities", "watchpoint", "watchpoint_set_command")
+ mydir = TestBase.compute_mydir(__file__)
@expectedFailureFreeBSD('llvm.org/pr16706') # Watchpoints not yet on FreeBSD
def test_error_cases_with_watchpoint_set(self):
diff --git a/lldb/test/help/TestHelp.py b/lldb/test/help/TestHelp.py
index 54d10ba49db..cf4ea120353 100644
--- a/lldb/test/help/TestHelp.py
+++ b/lldb/test/help/TestHelp.py
@@ -11,7 +11,7 @@ from lldbtest import *
class HelpCommandTestCase(TestBase):
- mydir = "help"
+ mydir = TestBase.compute_mydir(__file__)
def test_simplehelp(self):
"""A simple test of 'help' command and its output."""
diff --git a/lldb/test/lang/c/anonymous/TestAnonymous.py b/lldb/test/lang/c/anonymous/TestAnonymous.py
index 23246e8994d..7cfb364061d 100644
--- a/lldb/test/lang/c/anonymous/TestAnonymous.py
+++ b/lldb/test/lang/c/anonymous/TestAnonymous.py
@@ -8,7 +8,7 @@ import lldbutil
class AnonymousTestCase(TestBase):
- mydir = os.path.join("lang", "c", "anonymous")
+ mydir = TestBase.compute_mydir(__file__)
@dsym_test
def test_expr_nest_with_dsym(self):
diff --git a/lldb/test/lang/c/array_types/TestArrayTypes.py b/lldb/test/lang/c/array_types/TestArrayTypes.py
index ea638db0ad1..8bb95cbc8a3 100644
--- a/lldb/test/lang/c/array_types/TestArrayTypes.py
+++ b/lldb/test/lang/c/array_types/TestArrayTypes.py
@@ -8,7 +8,7 @@ import lldbutil
class ArrayTypesTestCase(TestBase):
- mydir = os.path.join("lang", "c", "array_types")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/lang/c/bitfields/TestBitfields.py b/lldb/test/lang/c/bitfields/TestBitfields.py
index a88291e84d8..c01625249d3 100644
--- a/lldb/test/lang/c/bitfields/TestBitfields.py
+++ b/lldb/test/lang/c/bitfields/TestBitfields.py
@@ -8,7 +8,7 @@ import lldbutil
class BitfieldsTestCase(TestBase):
- mydir = os.path.join("lang", "c", "bitfields")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/lang/c/blocks/TestBlocks.py b/lldb/test/lang/c/blocks/TestBlocks.py
index 124f5f2ed5e..85f3e644466 100644
--- a/lldb/test/lang/c/blocks/TestBlocks.py
+++ b/lldb/test/lang/c/blocks/TestBlocks.py
@@ -8,7 +8,7 @@ import lldbutil
class BlocksTestCase(TestBase):
- mydir = os.path.join("lang", "c", "blocks")
+ mydir = TestBase.compute_mydir(__file__)
lines = []
@unittest2.expectedFailure
diff --git a/lldb/test/lang/c/const_variables/TestConstVariables.py b/lldb/test/lang/c/const_variables/TestConstVariables.py
index 187ed9a7ff5..ce6a8c14960 100644
--- a/lldb/test/lang/c/const_variables/TestConstVariables.py
+++ b/lldb/test/lang/c/const_variables/TestConstVariables.py
@@ -8,7 +8,7 @@ import lldbutil
class ConstVariableTestCase(TestBase):
- mydir = os.path.join("lang", "c", "const_variables")
+ mydir = TestBase.compute_mydir(__file__)
@dsym_test
@unittest2.expectedFailure(13314878)
diff --git a/lldb/test/lang/c/enum_types/TestEnumTypes.py b/lldb/test/lang/c/enum_types/TestEnumTypes.py
index e0ec9334267..a0f8217a05b 100644
--- a/lldb/test/lang/c/enum_types/TestEnumTypes.py
+++ b/lldb/test/lang/c/enum_types/TestEnumTypes.py
@@ -8,7 +8,7 @@ import lldbutil
class EnumTypesTestCase(TestBase):
- mydir = os.path.join("lang", "c", "enum_types")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/lang/c/forward/TestForwardDeclaration.py b/lldb/test/lang/c/forward/TestForwardDeclaration.py
index 7ded56c824e..db088ab7d0d 100644
--- a/lldb/test/lang/c/forward/TestForwardDeclaration.py
+++ b/lldb/test/lang/c/forward/TestForwardDeclaration.py
@@ -8,7 +8,7 @@ import lldbutil
class ForwardDeclarationTestCase(TestBase):
- mydir = os.path.join("lang", "c", "forward")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/lang/c/function_types/TestFunctionTypes.py b/lldb/test/lang/c/function_types/TestFunctionTypes.py
index a9acced05d0..9b4241cdf36 100644
--- a/lldb/test/lang/c/function_types/TestFunctionTypes.py
+++ b/lldb/test/lang/c/function_types/TestFunctionTypes.py
@@ -8,7 +8,7 @@ import lldbutil
class FunctionTypesTestCase(TestBase):
- mydir = os.path.join("lang", "c", "function_types")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/lang/c/global_variables/TestGlobalVariables.py b/lldb/test/lang/c/global_variables/TestGlobalVariables.py
index 84f1e7c84f7..710782c36f4 100644
--- a/lldb/test/lang/c/global_variables/TestGlobalVariables.py
+++ b/lldb/test/lang/c/global_variables/TestGlobalVariables.py
@@ -8,7 +8,7 @@ import lldbutil
class GlobalVariablesTestCase(TestBase):
- mydir = os.path.join("lang", "c", "global_variables")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/lang/c/set_values/TestSetValues.py b/lldb/test/lang/c/set_values/TestSetValues.py
index 5705a04d33c..70a65d7d556 100644
--- a/lldb/test/lang/c/set_values/TestSetValues.py
+++ b/lldb/test/lang/c/set_values/TestSetValues.py
@@ -8,7 +8,7 @@ import lldbutil
class SetValuesTestCase(TestBase):
- mydir = os.path.join("lang", "c", "set_values")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/lang/c/shared_lib/TestSharedLib.py b/lldb/test/lang/c/shared_lib/TestSharedLib.py
index cd612e9bcff..c5af5bd48dc 100644
--- a/lldb/test/lang/c/shared_lib/TestSharedLib.py
+++ b/lldb/test/lang/c/shared_lib/TestSharedLib.py
@@ -8,7 +8,7 @@ import lldbutil
class SharedLibTestCase(TestBase):
- mydir = os.path.join("lang", "c", "shared_lib")
+ mydir = TestBase.compute_mydir(__file__)
@dsym_test
def test_expr_with_dsym(self):
diff --git a/lldb/test/lang/c/shared_lib_stripped_symbols/TestSharedLibStrippedSymbols.py b/lldb/test/lang/c/shared_lib_stripped_symbols/TestSharedLibStrippedSymbols.py
index a3f7922d638..f8f9b4a616d 100644
--- a/lldb/test/lang/c/shared_lib_stripped_symbols/TestSharedLibStrippedSymbols.py
+++ b/lldb/test/lang/c/shared_lib_stripped_symbols/TestSharedLibStrippedSymbols.py
@@ -8,7 +8,7 @@ import lldbutil
class SharedLibTestCase(TestBase):
- mydir = os.path.join("lang", "c", "shared_lib")
+ mydir = TestBase.compute_mydir(__file__)
@dsym_test
def test_expr_with_dsym(self):
diff --git a/lldb/test/lang/c/stepping/TestStepAndBreakpoints.py b/lldb/test/lang/c/stepping/TestStepAndBreakpoints.py
index 41c16e954ed..81a937a6bc6 100644
--- a/lldb/test/lang/c/stepping/TestStepAndBreakpoints.py
+++ b/lldb/test/lang/c/stepping/TestStepAndBreakpoints.py
@@ -8,7 +8,7 @@ from lldbtest import *
class TestCStepping(TestBase):
- mydir = os.path.join("lang", "c", "stepping")
+ mydir = TestBase.compute_mydir(__file__)
def getCategories(self):
return ['basic_process']
diff --git a/lldb/test/lang/c/stepping/TestThreadStepping.py b/lldb/test/lang/c/stepping/TestThreadStepping.py
index 8e7952ae8b1..747ef4af314 100644
--- a/lldb/test/lang/c/stepping/TestThreadStepping.py
+++ b/lldb/test/lang/c/stepping/TestThreadStepping.py
@@ -11,7 +11,7 @@ import lldbutil
class ThreadSteppingTestCase(TestBase):
- mydir = os.path.join("lang", "c", "stepping")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/lang/c/strings/TestCStrings.py b/lldb/test/lang/c/strings/TestCStrings.py
index 5870451057d..636777e5077 100644
--- a/lldb/test/lang/c/strings/TestCStrings.py
+++ b/lldb/test/lang/c/strings/TestCStrings.py
@@ -7,7 +7,7 @@ import lldbutil
class CStringsTestCase(TestBase):
- mydir = os.path.join("lang", "c", "strings")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/lang/c/struct_types/TestStructTypes.py b/lldb/test/lang/c/struct_types/TestStructTypes.py
index b9835135355..1ec0ec7c6a9 100644
--- a/lldb/test/lang/c/struct_types/TestStructTypes.py
+++ b/lldb/test/lang/c/struct_types/TestStructTypes.py
@@ -12,7 +12,7 @@ import lldbutil
class StructTypesTestCase(TestBase):
- mydir = os.path.join("lang", "c", "struct_types")
+ mydir = TestBase.compute_mydir(__file__)
# rdar://problem/12566646
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
diff --git a/lldb/test/lang/c/tls_globals/TestTlsGlobals.py b/lldb/test/lang/c/tls_globals/TestTlsGlobals.py
index f1d56d67f47..1141962d844 100644
--- a/lldb/test/lang/c/tls_globals/TestTlsGlobals.py
+++ b/lldb/test/lang/c/tls_globals/TestTlsGlobals.py
@@ -8,7 +8,7 @@ import lldbutil
class TlsGlobalTestCase(TestBase):
- mydir = os.path.join("lang", "c", "tls_globals")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/lang/cpp/bool/TestCPPBool.py b/lldb/test/lang/cpp/bool/TestCPPBool.py
index 0337cca5aa3..a8ee86e5010 100644
--- a/lldb/test/lang/cpp/bool/TestCPPBool.py
+++ b/lldb/test/lang/cpp/bool/TestCPPBool.py
@@ -7,7 +7,7 @@ import lldbutil
class CPPBoolTestCase(TestBase):
- mydir = os.path.join("lang", "cpp", "bool")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/lang/cpp/breakpoints/TestCPPBreakpoints.py b/lldb/test/lang/cpp/breakpoints/TestCPPBreakpoints.py
index 367d75de811..675e5b42c3f 100644
--- a/lldb/test/lang/cpp/breakpoints/TestCPPBreakpoints.py
+++ b/lldb/test/lang/cpp/breakpoints/TestCPPBreakpoints.py
@@ -9,7 +9,7 @@ from lldbtest import *
class CPPBreakpointTestCase(TestBase):
- mydir = os.path.join("lang", "cpp", "breakpoints")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/lang/cpp/call-function/TestCallCPPFunction.py b/lldb/test/lang/cpp/call-function/TestCallCPPFunction.py
index c573770334d..a026f14de12 100644
--- a/lldb/test/lang/cpp/call-function/TestCallCPPFunction.py
+++ b/lldb/test/lang/cpp/call-function/TestCallCPPFunction.py
@@ -8,7 +8,7 @@ import lldbutil
class CallCPPFunctionTestCase(TestBase):
- mydir = os.path.join("lang", "cpp", "call-function")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/lang/cpp/char1632_t/TestChar1632T.py b/lldb/test/lang/cpp/char1632_t/TestChar1632T.py
index 97477943649..445c1dd9c9e 100644
--- a/lldb/test/lang/cpp/char1632_t/TestChar1632T.py
+++ b/lldb/test/lang/cpp/char1632_t/TestChar1632T.py
@@ -11,7 +11,7 @@ import lldbutil
class Char1632TestCase(TestBase):
- mydir = os.path.join("lang", "cpp", "char1632_t")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/lang/cpp/class_static/TestStaticVariables.py b/lldb/test/lang/cpp/class_static/TestStaticVariables.py
index 248763eb2f1..6ecefd379e9 100644
--- a/lldb/test/lang/cpp/class_static/TestStaticVariables.py
+++ b/lldb/test/lang/cpp/class_static/TestStaticVariables.py
@@ -10,7 +10,7 @@ import lldbutil
class StaticVariableTestCase(TestBase):
- mydir = os.path.join("lang", "cpp", "class_static")
+ mydir = TestBase.compute_mydir(__file__)
failing_compilers = ['clang', 'gcc']
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
diff --git a/lldb/test/lang/cpp/class_types/TestClassTypes.py b/lldb/test/lang/cpp/class_types/TestClassTypes.py
index 76e8ace4bf1..b41ca399af2 100644
--- a/lldb/test/lang/cpp/class_types/TestClassTypes.py
+++ b/lldb/test/lang/cpp/class_types/TestClassTypes.py
@@ -9,7 +9,7 @@ import lldbutil
class ClassTypesTestCase(TestBase):
- mydir = os.path.join("lang", "cpp", "class_types")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/lang/cpp/class_types/TestClassTypesDisassembly.py b/lldb/test/lang/cpp/class_types/TestClassTypesDisassembly.py
index d11dba1d044..2e79abc686c 100644
--- a/lldb/test/lang/cpp/class_types/TestClassTypesDisassembly.py
+++ b/lldb/test/lang/cpp/class_types/TestClassTypesDisassembly.py
@@ -10,7 +10,7 @@ import lldbutil
class IterateFrameAndDisassembleTestCase(TestBase):
- mydir = os.path.join("lang", "cpp", "class_types")
+ mydir = TestBase.compute_mydir(__file__)
failing_compilers = ['clang', 'gcc']
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
diff --git a/lldb/test/lang/cpp/dynamic-value/TestCppValueCast.py b/lldb/test/lang/cpp/dynamic-value/TestCppValueCast.py
index c11a3510712..b2afaa57a13 100644
--- a/lldb/test/lang/cpp/dynamic-value/TestCppValueCast.py
+++ b/lldb/test/lang/cpp/dynamic-value/TestCppValueCast.py
@@ -10,7 +10,7 @@ from lldbtest import *
class CppValueCastTestCase(TestBase):
- mydir = os.path.join("lang", "cpp", "dynamic-value")
+ mydir = TestBase.compute_mydir(__file__)
# rdar://problem/10808472 SBValue::Cast test case is failing (virtual inheritance)
@unittest2.expectedFailure
diff --git a/lldb/test/lang/cpp/dynamic-value/TestDynamicValue.py b/lldb/test/lang/cpp/dynamic-value/TestDynamicValue.py
index 34ecbd3d3dd..b0698d80070 100644
--- a/lldb/test/lang/cpp/dynamic-value/TestDynamicValue.py
+++ b/lldb/test/lang/cpp/dynamic-value/TestDynamicValue.py
@@ -10,7 +10,7 @@ from lldbtest import *
class DynamicValueTestCase(TestBase):
- mydir = os.path.join("lang", "cpp", "dynamic-value")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
diff --git a/lldb/test/lang/cpp/enum_types/TestCPP11EnumTypes.py b/lldb/test/lang/cpp/enum_types/TestCPP11EnumTypes.py
index 38996740c47..77dbaea56d4 100644
--- a/lldb/test/lang/cpp/enum_types/TestCPP11EnumTypes.py
+++ b/lldb/test/lang/cpp/enum_types/TestCPP11EnumTypes.py
@@ -8,7 +8,7 @@ import lldbutil
class CPP11EnumTypesTestCase(TestBase):
- mydir = os.path.join("lang", "cpp", "enum_types")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/lang/cpp/exceptions/TestCPPExceptionBreakpoints.py b/lldb/test/lang/cpp/exceptions/TestCPPExceptionBreakpoints.py
index c294b54dd6e..122ff94f5b0 100644
--- a/lldb/test/lang/cpp/exceptions/TestCPPExceptionBreakpoints.py
+++ b/lldb/test/lang/cpp/exceptions/TestCPPExceptionBreakpoints.py
@@ -10,7 +10,7 @@ from lldbtest import *
class CPPBreakpointTestCase(TestBase):
- mydir = os.path.join("lang", "cpp", "exceptions")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/lang/cpp/namespace/TestNamespace.py b/lldb/test/lang/cpp/namespace/TestNamespace.py
index ecfa3308f33..e9f78e03676 100644
--- a/lldb/test/lang/cpp/namespace/TestNamespace.py
+++ b/lldb/test/lang/cpp/namespace/TestNamespace.py
@@ -10,7 +10,7 @@ import lldbutil
class NamespaceTestCase(TestBase):
- mydir = os.path.join("lang", "cpp", "namespace")
+ mydir = TestBase.compute_mydir(__file__)
# rdar://problem/8668674
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
diff --git a/lldb/test/lang/cpp/overloaded-functions/TestOverloadedFunctions.py b/lldb/test/lang/cpp/overloaded-functions/TestOverloadedFunctions.py
index 634c28c02ed..987b15f3b20 100644
--- a/lldb/test/lang/cpp/overloaded-functions/TestOverloadedFunctions.py
+++ b/lldb/test/lang/cpp/overloaded-functions/TestOverloadedFunctions.py
@@ -8,7 +8,7 @@ import lldbutil
class CPPStaticMethodsTestCase(TestBase):
- mydir = os.path.join("lang", "cpp", "overloaded-functions")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/lang/cpp/rdar12991846/TestRdar12991846.py b/lldb/test/lang/cpp/rdar12991846/TestRdar12991846.py
index 601c8e9e612..faa04881945 100644
--- a/lldb/test/lang/cpp/rdar12991846/TestRdar12991846.py
+++ b/lldb/test/lang/cpp/rdar12991846/TestRdar12991846.py
@@ -24,7 +24,7 @@ import lldbutil
class Rdar12991846TestCase(TestBase):
- mydir = os.path.join("lang", "cpp", "rdar12991846")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.expectedFailure
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
diff --git a/lldb/test/lang/cpp/rvalue-references/TestRvalueReferences.py b/lldb/test/lang/cpp/rvalue-references/TestRvalueReferences.py
index 9c9f08f19b3..803f7be11b9 100644
--- a/lldb/test/lang/cpp/rvalue-references/TestRvalueReferences.py
+++ b/lldb/test/lang/cpp/rvalue-references/TestRvalueReferences.py
@@ -8,7 +8,7 @@ import lldbutil
class RvalueReferencesTestCase(TestBase):
- mydir = os.path.join("lang", "cpp", "rvalue-references")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
#rdar://problem/11479676
diff --git a/lldb/test/lang/cpp/signed_types/TestSignedTypes.py b/lldb/test/lang/cpp/signed_types/TestSignedTypes.py
index e9de2d909a8..6effad0ffab 100644
--- a/lldb/test/lang/cpp/signed_types/TestSignedTypes.py
+++ b/lldb/test/lang/cpp/signed_types/TestSignedTypes.py
@@ -11,7 +11,7 @@ import lldbutil
class UnsignedTypesTestCase(TestBase):
- mydir = os.path.join("lang", "cpp", "signed_types")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/lang/cpp/static_members/TestCPPStaticMembers.py b/lldb/test/lang/cpp/static_members/TestCPPStaticMembers.py
index a553ff4b537..d49b86a06a6 100644
--- a/lldb/test/lang/cpp/static_members/TestCPPStaticMembers.py
+++ b/lldb/test/lang/cpp/static_members/TestCPPStaticMembers.py
@@ -7,7 +7,7 @@ import lldbutil
class CPPStaticMembersTestCase(TestBase):
- mydir = os.path.join("lang", "cpp", "static_members")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@unittest2.expectedFailure # llvm.org/pr15401
diff --git a/lldb/test/lang/cpp/static_methods/TestCPPStaticMethods.py b/lldb/test/lang/cpp/static_methods/TestCPPStaticMethods.py
index 357b050eb7b..25dec6f465b 100644
--- a/lldb/test/lang/cpp/static_methods/TestCPPStaticMethods.py
+++ b/lldb/test/lang/cpp/static_methods/TestCPPStaticMethods.py
@@ -8,7 +8,7 @@ import lldbutil
class CPPStaticMethodsTestCase(TestBase):
- mydir = os.path.join("lang", "cpp", "static_methods")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/lang/cpp/stl/TestSTL.py b/lldb/test/lang/cpp/stl/TestSTL.py
index 2c09d6b09dc..ffb02e2e654 100644
--- a/lldb/test/lang/cpp/stl/TestSTL.py
+++ b/lldb/test/lang/cpp/stl/TestSTL.py
@@ -10,7 +10,7 @@ from lldbtest import *
class STLTestCase(TestBase):
- mydir = os.path.join("lang", "cpp", "stl")
+ mydir = TestBase.compute_mydir(__file__)
# rdar://problem/10400981
@unittest2.expectedFailure
diff --git a/lldb/test/lang/cpp/stl/TestStdCXXDisassembly.py b/lldb/test/lang/cpp/stl/TestStdCXXDisassembly.py
index 8914e2a78ab..c05c2fce548 100644
--- a/lldb/test/lang/cpp/stl/TestStdCXXDisassembly.py
+++ b/lldb/test/lang/cpp/stl/TestStdCXXDisassembly.py
@@ -10,7 +10,7 @@ import lldbutil
class StdCXXDisassembleTestCase(TestBase):
- mydir = os.path.join("lang", "cpp", "stl")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/lang/cpp/this/TestCPPThis.py b/lldb/test/lang/cpp/this/TestCPPThis.py
index 0cb7404a5ee..62bed20b2d7 100644
--- a/lldb/test/lang/cpp/this/TestCPPThis.py
+++ b/lldb/test/lang/cpp/this/TestCPPThis.py
@@ -7,7 +7,7 @@ import lldbutil
class CPPThisTestCase(TestBase):
- mydir = os.path.join("lang", "cpp", "this")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
#rdar://problem/9962849
diff --git a/lldb/test/lang/cpp/unique-types/TestUniqueTypes.py b/lldb/test/lang/cpp/unique-types/TestUniqueTypes.py
index 3579f7a9394..e07c02e0cd0 100644
--- a/lldb/test/lang/cpp/unique-types/TestUniqueTypes.py
+++ b/lldb/test/lang/cpp/unique-types/TestUniqueTypes.py
@@ -9,7 +9,7 @@ from lldbtest import *
class UniqueTypesTestCase(TestBase):
- mydir = os.path.join("lang", "cpp", "unique-types")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/lang/cpp/unsigned_types/TestUnsignedTypes.py b/lldb/test/lang/cpp/unsigned_types/TestUnsignedTypes.py
index ddf768ec6e6..66b4a5493a0 100644
--- a/lldb/test/lang/cpp/unsigned_types/TestUnsignedTypes.py
+++ b/lldb/test/lang/cpp/unsigned_types/TestUnsignedTypes.py
@@ -11,7 +11,7 @@ import lldbutil
class UnsignedTypesTestCase(TestBase):
- mydir = os.path.join("lang", "cpp", "unsigned_types")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/lang/cpp/virtual/TestVirtual.py b/lldb/test/lang/cpp/virtual/TestVirtual.py
index 2d811ab8e1f..4c1fff15e99 100644
--- a/lldb/test/lang/cpp/virtual/TestVirtual.py
+++ b/lldb/test/lang/cpp/virtual/TestVirtual.py
@@ -13,7 +13,7 @@ def Msg(expr, val):
class CppVirtualMadness(TestBase):
- mydir = os.path.join("lang", "cpp", "virtual")
+ mydir = TestBase.compute_mydir(__file__)
# This is the pattern by design to match the "my_expr = 'value'" output from
# printf() stmts (see main.cpp).
diff --git a/lldb/test/lang/cpp/wchar_t/TestCxxWCharT.py b/lldb/test/lang/cpp/wchar_t/TestCxxWCharT.py
index 52fab1f98cf..3d286d89175 100644
--- a/lldb/test/lang/cpp/wchar_t/TestCxxWCharT.py
+++ b/lldb/test/lang/cpp/wchar_t/TestCxxWCharT.py
@@ -11,7 +11,7 @@ import lldbutil
class CxxWCharTTestCase(TestBase):
- mydir = os.path.join("lang", "cpp", "wchar_t")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/lang/objc/blocks/TestObjCIvarsInBlocks.py b/lldb/test/lang/objc/blocks/TestObjCIvarsInBlocks.py
index 0213c46b435..40d7bfc3219 100644
--- a/lldb/test/lang/objc/blocks/TestObjCIvarsInBlocks.py
+++ b/lldb/test/lang/objc/blocks/TestObjCIvarsInBlocks.py
@@ -8,7 +8,7 @@ import lldbutil
class TestObjCIvarsInBlocks(TestBase):
- mydir = os.path.join("lang", "objc", "blocks")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
# This test requires the 2.0 runtime, so it will fail on i386.
diff --git a/lldb/test/lang/objc/forward-decl/TestForwardDecl.py b/lldb/test/lang/objc/forward-decl/TestForwardDecl.py
index 24ede4cc8df..abcddaeabca 100644
--- a/lldb/test/lang/objc/forward-decl/TestForwardDecl.py
+++ b/lldb/test/lang/objc/forward-decl/TestForwardDecl.py
@@ -8,7 +8,7 @@ import lldbutil
class ForwardDeclTestCase(TestBase):
- mydir = os.path.join("lang", "objc", "forward-decl")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/lang/objc/foundation/TestConstStrings.py b/lldb/test/lang/objc/foundation/TestConstStrings.py
index e19d09ec309..cafea53402c 100644
--- a/lldb/test/lang/objc/foundation/TestConstStrings.py
+++ b/lldb/test/lang/objc/foundation/TestConstStrings.py
@@ -12,7 +12,7 @@ import lldbutil
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
class ConstStringTestCase(TestBase):
- mydir = os.path.join("lang", "objc", "foundation")
+ mydir = TestBase.compute_mydir(__file__)
d = {'OBJC_SOURCES': 'const-strings.m'}
@dsym_test
diff --git a/lldb/test/lang/objc/foundation/TestFoundationDisassembly.py b/lldb/test/lang/objc/foundation/TestFoundationDisassembly.py
index 11dda6543b4..b067640e7b3 100644
--- a/lldb/test/lang/objc/foundation/TestFoundationDisassembly.py
+++ b/lldb/test/lang/objc/foundation/TestFoundationDisassembly.py
@@ -11,7 +11,7 @@ import lldbutil
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
class FoundationDisassembleTestCase(TestBase):
- mydir = os.path.join("lang", "objc", "foundation")
+ mydir = TestBase.compute_mydir(__file__)
# rdar://problem/8504895
# Crash while doing 'disassemble -n "-[NSNumber descriptionWithLocale:]"
diff --git a/lldb/test/lang/objc/foundation/TestObjCMethods.py b/lldb/test/lang/objc/foundation/TestObjCMethods.py
index 380c44802ff..67c96c1c35d 100644
--- a/lldb/test/lang/objc/foundation/TestObjCMethods.py
+++ b/lldb/test/lang/objc/foundation/TestObjCMethods.py
@@ -12,7 +12,7 @@ import lldbutil
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
class FoundationTestCase(TestBase):
- mydir = os.path.join("lang", "objc", "foundation")
+ mydir = TestBase.compute_mydir(__file__)
@dsym_test
def test_break_with_dsym(self):
diff --git a/lldb/test/lang/objc/foundation/TestObjCMethods2.py b/lldb/test/lang/objc/foundation/TestObjCMethods2.py
index 37e3f1e125b..3385a0f85a5 100644
--- a/lldb/test/lang/objc/foundation/TestObjCMethods2.py
+++ b/lldb/test/lang/objc/foundation/TestObjCMethods2.py
@@ -11,7 +11,7 @@ import lldbutil
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
class FoundationTestCase2(TestBase):
- mydir = os.path.join("lang", "objc", "foundation")
+ mydir = TestBase.compute_mydir(__file__)
@dsym_test
def test_more_expr_commands_with_dsym(self):
diff --git a/lldb/test/lang/objc/foundation/TestObjectDescriptionAPI.py b/lldb/test/lang/objc/foundation/TestObjectDescriptionAPI.py
index 1c42553b526..09a03d4df96 100644
--- a/lldb/test/lang/objc/foundation/TestObjectDescriptionAPI.py
+++ b/lldb/test/lang/objc/foundation/TestObjectDescriptionAPI.py
@@ -10,7 +10,7 @@ from lldbtest import *
class ObjectDescriptionAPITestCase(TestBase):
- mydir = os.path.join("lang", "objc", "foundation")
+ mydir = TestBase.compute_mydir(__file__)
# rdar://problem/10857337
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
diff --git a/lldb/test/lang/objc/foundation/TestRuntimeTypes.py b/lldb/test/lang/objc/foundation/TestRuntimeTypes.py
index dbdd82f2b4f..0cfa89b13c2 100644
--- a/lldb/test/lang/objc/foundation/TestRuntimeTypes.py
+++ b/lldb/test/lang/objc/foundation/TestRuntimeTypes.py
@@ -11,7 +11,7 @@ import lldbutil
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
class RuntimeTypesTestCase(TestBase):
- mydir = os.path.join("lang", "objc", "foundation")
+ mydir = TestBase.compute_mydir(__file__)
@dsym_test
def test_break_with_dsym(self):
diff --git a/lldb/test/lang/objc/foundation/TestSymbolTable.py b/lldb/test/lang/objc/foundation/TestSymbolTable.py
index c41874a7fca..28b5f73fa7f 100644
--- a/lldb/test/lang/objc/foundation/TestSymbolTable.py
+++ b/lldb/test/lang/objc/foundation/TestSymbolTable.py
@@ -10,7 +10,7 @@ from lldbtest import *
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
class FoundationSymtabTestCase(TestBase):
- mydir = os.path.join("lang", "objc", "foundation")
+ mydir = TestBase.compute_mydir(__file__)
symbols_list = ['-[MyString initWithNSString:]',
'-[MyString dealloc]',
diff --git a/lldb/test/lang/objc/hidden-ivars/TestHiddenIvars.py b/lldb/test/lang/objc/hidden-ivars/TestHiddenIvars.py
index 1f50de94106..f8a768c0cf5 100644
--- a/lldb/test/lang/objc/hidden-ivars/TestHiddenIvars.py
+++ b/lldb/test/lang/objc/hidden-ivars/TestHiddenIvars.py
@@ -8,7 +8,7 @@ import lldbutil
class HiddenIvarsTestCase(TestBase):
- mydir = os.path.join("lang", "objc", "hidden-ivars")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/lang/objc/objc++/TestObjCXX.py b/lldb/test/lang/objc/objc++/TestObjCXX.py
index 484d729d842..0658b849876 100644
--- a/lldb/test/lang/objc/objc++/TestObjCXX.py
+++ b/lldb/test/lang/objc/objc++/TestObjCXX.py
@@ -10,7 +10,7 @@ import lldbutil
class ObjCXXTestCase(TestBase):
- mydir = os.path.join("lang", "objc", "objc++")
+ mydir = TestBase.compute_mydir(__file__)
@dsym_test
def test_break_with_dsym(self):
diff --git a/lldb/test/lang/objc/objc-baseclass-sbtype/TestObjCBaseClassSBType.py b/lldb/test/lang/objc/objc-baseclass-sbtype/TestObjCBaseClassSBType.py
index 0a98469e983..6aca65b781f 100644
--- a/lldb/test/lang/objc/objc-baseclass-sbtype/TestObjCBaseClassSBType.py
+++ b/lldb/test/lang/objc/objc-baseclass-sbtype/TestObjCBaseClassSBType.py
@@ -10,7 +10,7 @@ from lldbtest import *
class ObjCDynamicValueTestCase(TestBase):
- mydir = os.path.join("lang", "objc", "objc-baseclass-sbtype")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
diff --git a/lldb/test/lang/objc/objc-builtin-types/TestObjCBuiltinTypes.py b/lldb/test/lang/objc/objc-builtin-types/TestObjCBuiltinTypes.py
index e0ebee67b1f..b43ad7af907 100644
--- a/lldb/test/lang/objc/objc-builtin-types/TestObjCBuiltinTypes.py
+++ b/lldb/test/lang/objc/objc-builtin-types/TestObjCBuiltinTypes.py
@@ -8,7 +8,7 @@ from lldbtest import *
class TestObjCBuiltinTypes(TestBase):
- mydir = os.path.join("lang", "objc", "objc-builtin-types")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
diff --git a/lldb/test/lang/objc/objc-checker/TestObjCCheckers.py b/lldb/test/lang/objc/objc-checker/TestObjCCheckers.py
index fd3d76c4414..28659ffd813 100644
--- a/lldb/test/lang/objc/objc-checker/TestObjCCheckers.py
+++ b/lldb/test/lang/objc/objc-checker/TestObjCCheckers.py
@@ -10,7 +10,7 @@ from lldbtest import *
class ObjCCheckerTestCase(TestBase):
- mydir = os.path.join("lang", "objc", "objc-checker")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
diff --git a/lldb/test/lang/objc/objc-class-method/TestObjCClassMethod.py b/lldb/test/lang/objc/objc-class-method/TestObjCClassMethod.py
index c158385a4da..9fc272133d7 100644
--- a/lldb/test/lang/objc/objc-class-method/TestObjCClassMethod.py
+++ b/lldb/test/lang/objc/objc-class-method/TestObjCClassMethod.py
@@ -8,7 +8,7 @@ from lldbtest import *
class TestObjCClassMethod(TestBase):
- mydir = os.path.join("lang", "objc", "objc-class-method")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
diff --git a/lldb/test/lang/objc/objc-dyn-sbtype/TestObjCDynamicSBType.py b/lldb/test/lang/objc/objc-dyn-sbtype/TestObjCDynamicSBType.py
index 3d14339e254..335aab39639 100644
--- a/lldb/test/lang/objc/objc-dyn-sbtype/TestObjCDynamicSBType.py
+++ b/lldb/test/lang/objc/objc-dyn-sbtype/TestObjCDynamicSBType.py
@@ -11,7 +11,7 @@ import lldbutil
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
class ObjCDynamicSBTypeTestCase(TestBase):
- mydir = os.path.join("lang", "objc", "objc-dyn-sbtype")
+ mydir = TestBase.compute_mydir(__file__)
@dsym_test
@skipIfi386
diff --git a/lldb/test/lang/objc/objc-dynamic-value/TestObjCDynamicValue.py b/lldb/test/lang/objc/objc-dynamic-value/TestObjCDynamicValue.py
index bd77aa3a974..e679ca27b07 100644
--- a/lldb/test/lang/objc/objc-dynamic-value/TestObjCDynamicValue.py
+++ b/lldb/test/lang/objc/objc-dynamic-value/TestObjCDynamicValue.py
@@ -10,7 +10,7 @@ from lldbtest import *
class ObjCDynamicValueTestCase(TestBase):
- mydir = os.path.join("lang", "objc", "objc-dynamic-value")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
diff --git a/lldb/test/lang/objc/objc-ivar-offsets/TestObjCIvarOffsets.py b/lldb/test/lang/objc/objc-ivar-offsets/TestObjCIvarOffsets.py
index b4d7137181e..1df069f00df 100644
--- a/lldb/test/lang/objc/objc-ivar-offsets/TestObjCIvarOffsets.py
+++ b/lldb/test/lang/objc/objc-ivar-offsets/TestObjCIvarOffsets.py
@@ -8,7 +8,7 @@ import lldbutil
class TestObjCIvarOffsets(TestBase):
- mydir = os.path.join("lang", "objc", "objc-ivar-offsets")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
diff --git a/lldb/test/lang/objc/objc-ivar-stripped/TestObjCIvarStripped.py b/lldb/test/lang/objc/objc-ivar-stripped/TestObjCIvarStripped.py
index fef0921d896..3a116bbc12a 100644
--- a/lldb/test/lang/objc/objc-ivar-stripped/TestObjCIvarStripped.py
+++ b/lldb/test/lang/objc/objc-ivar-stripped/TestObjCIvarStripped.py
@@ -8,7 +8,7 @@ import lldbutil
class TestObjCIvarStripped(TestBase):
- mydir = os.path.join("lang", "objc", "objc-ivar-stripped")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
diff --git a/lldb/test/lang/objc/objc-new-syntax/TestObjCNewSyntax.py b/lldb/test/lang/objc/objc-new-syntax/TestObjCNewSyntax.py
index 2f1f5b0edd0..b3dcafc9b2d 100644
--- a/lldb/test/lang/objc/objc-new-syntax/TestObjCNewSyntax.py
+++ b/lldb/test/lang/objc/objc-new-syntax/TestObjCNewSyntax.py
@@ -12,7 +12,7 @@ from lldbtest import *
class ObjCNewSyntaxTestCase(TestBase):
- mydir = os.path.join("lang", "objc", "objc-new-syntax")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.expectedFailure
@dsym_test
diff --git a/lldb/test/lang/objc/objc-optimized/TestObjcOptimized.py b/lldb/test/lang/objc/objc-optimized/TestObjcOptimized.py
index a7a9d232962..55127c392fd 100644
--- a/lldb/test/lang/objc/objc-optimized/TestObjcOptimized.py
+++ b/lldb/test/lang/objc/objc-optimized/TestObjcOptimized.py
@@ -19,7 +19,7 @@ import re
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
class ObjcOptimizedTestCase(TestBase):
- mydir = os.path.join("lang", "objc", "objc-optimized")
+ mydir = TestBase.compute_mydir(__file__)
myclass = "MyClass"
mymethod = "description"
method_spec = "-[%s %s]" % (myclass, mymethod)
diff --git a/lldb/test/lang/objc/objc-property/TestObjCProperty.py b/lldb/test/lang/objc/objc-property/TestObjCProperty.py
index dadb7fa291c..2a2bd014cea 100644
--- a/lldb/test/lang/objc/objc-property/TestObjCProperty.py
+++ b/lldb/test/lang/objc/objc-property/TestObjCProperty.py
@@ -10,7 +10,7 @@ from lldbtest import *
class ObjCPropertyTestCase(TestBase):
- mydir = os.path.join("lang", "objc", "objc-property")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
diff --git a/lldb/test/lang/objc/objc-static-method-stripped/TestObjCStaticMethodStripped.py b/lldb/test/lang/objc/objc-static-method-stripped/TestObjCStaticMethodStripped.py
index bf7e059313c..c14432c879f 100644
--- a/lldb/test/lang/objc/objc-static-method-stripped/TestObjCStaticMethodStripped.py
+++ b/lldb/test/lang/objc/objc-static-method-stripped/TestObjCStaticMethodStripped.py
@@ -8,7 +8,7 @@ from lldbtest import *
class TestObjCStaticMethodStripped(TestBase):
- mydir = os.path.join("lang", "objc", "objc-static-method-stripped")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
diff --git a/lldb/test/lang/objc/objc-static-method/TestObjCStaticMethod.py b/lldb/test/lang/objc/objc-static-method/TestObjCStaticMethod.py
index 31968301fba..a89863143fc 100644
--- a/lldb/test/lang/objc/objc-static-method/TestObjCStaticMethod.py
+++ b/lldb/test/lang/objc/objc-static-method/TestObjCStaticMethod.py
@@ -8,7 +8,7 @@ from lldbtest import *
class TestObjCStaticMethod(TestBase):
- mydir = os.path.join("lang", "objc", "objc-static-method")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
diff --git a/lldb/test/lang/objc/objc-stepping/TestObjCStepping.py b/lldb/test/lang/objc/objc-stepping/TestObjCStepping.py
index 48900d24831..8bee8c05de2 100644
--- a/lldb/test/lang/objc/objc-stepping/TestObjCStepping.py
+++ b/lldb/test/lang/objc/objc-stepping/TestObjCStepping.py
@@ -11,7 +11,7 @@ class TestObjCStepping(TestBase):
def getCategories (self):
return ['basic_process']
- mydir = os.path.join("lang", "objc", "objc-stepping")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
diff --git a/lldb/test/lang/objc/objc-struct-return/TestObjCStructReturn.py b/lldb/test/lang/objc/objc-struct-return/TestObjCStructReturn.py
index 788310bcba9..8490d1c73b1 100644
--- a/lldb/test/lang/objc/objc-struct-return/TestObjCStructReturn.py
+++ b/lldb/test/lang/objc/objc-struct-return/TestObjCStructReturn.py
@@ -8,7 +8,7 @@ from lldbtest import *
class TestObjCClassMethod(TestBase):
- mydir = os.path.join("lang", "objc", "objc-class-method")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
@@ -30,7 +30,7 @@ class TestObjCClassMethod(TestBase):
# Call super's setUp().
TestBase.setUp(self)
# Find the line numbers to break inside main().
- self.main_source = "class.m"
+ self.main_source = "test.m"
self.break_line = line_number(self.main_source, '// Set breakpoint here.')
def objc_class_method(self):
diff --git a/lldb/test/lang/objc/objc-super/TestObjCSuper.py b/lldb/test/lang/objc/objc-super/TestObjCSuper.py
index 746e29cf4b5..15b5218f28c 100644
--- a/lldb/test/lang/objc/objc-super/TestObjCSuper.py
+++ b/lldb/test/lang/objc/objc-super/TestObjCSuper.py
@@ -8,7 +8,7 @@ from lldbtest import *
class TestObjCSuperMethod(TestBase):
- mydir = os.path.join("lang", "objc", "objc-super")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@expectedFailurei386
diff --git a/lldb/test/lang/objc/print-obj/TestPrintObj.py b/lldb/test/lang/objc/print-obj/TestPrintObj.py
index 66b59581a61..acd4f7d9b29 100644
--- a/lldb/test/lang/objc/print-obj/TestPrintObj.py
+++ b/lldb/test/lang/objc/print-obj/TestPrintObj.py
@@ -10,7 +10,7 @@ from lldbtest import *
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
class PrintObjTestCase(TestBase):
- mydir = os.path.join("lang", "objc", "print-obj")
+ mydir = TestBase.compute_mydir(__file__)
@dsym_test
def test_print_obj_with_dsym(self):
diff --git a/lldb/test/lang/objc/radar-9691614/TestObjCMethodReturningBOOL.py b/lldb/test/lang/objc/radar-9691614/TestObjCMethodReturningBOOL.py
index 8f48196fb1a..20aecdec3c8 100644
--- a/lldb/test/lang/objc/radar-9691614/TestObjCMethodReturningBOOL.py
+++ b/lldb/test/lang/objc/radar-9691614/TestObjCMethodReturningBOOL.py
@@ -11,7 +11,7 @@ import lldbutil
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
class MethodReturningBOOLTestCase(TestBase):
- mydir = os.path.join("lang", "objc", "radar-9691614")
+ mydir = TestBase.compute_mydir(__file__)
@dsym_test
def test_method_ret_BOOL_with_dsym(self):
diff --git a/lldb/test/lang/objc/rdar-10967107/TestRdar10967107.py b/lldb/test/lang/objc/rdar-10967107/TestRdar10967107.py
index 15e843b34bf..ecc80ebc402 100644
--- a/lldb/test/lang/objc/rdar-10967107/TestRdar10967107.py
+++ b/lldb/test/lang/objc/rdar-10967107/TestRdar10967107.py
@@ -11,7 +11,7 @@ import lldbutil
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
class Rdar10967107TestCase(TestBase):
- mydir = os.path.join("lang", "objc", "rdar-10967107")
+ mydir = TestBase.compute_mydir(__file__)
@dsym_test
def test_cfrange_diff_cfgregoriandate_with_dsym(self):
diff --git a/lldb/test/lang/objc/rdar-11355592/TestRdar11355592.py b/lldb/test/lang/objc/rdar-11355592/TestRdar11355592.py
index 1dbf680d675..165948d16e0 100644
--- a/lldb/test/lang/objc/rdar-11355592/TestRdar11355592.py
+++ b/lldb/test/lang/objc/rdar-11355592/TestRdar11355592.py
@@ -11,7 +11,7 @@ import lldbutil
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
class Rdar10967107TestCase(TestBase):
- mydir = os.path.join("lang", "objc", "rdar-11355592")
+ mydir = TestBase.compute_mydir(__file__)
@dsym_test
def test_charstar_dyntype_with_dsym(self):
diff --git a/lldb/test/lang/objc/rdar-12408181/TestRdar12408181.py b/lldb/test/lang/objc/rdar-12408181/TestRdar12408181.py
index 7f884248f6e..caae8963ee7 100644
--- a/lldb/test/lang/objc/rdar-12408181/TestRdar12408181.py
+++ b/lldb/test/lang/objc/rdar-12408181/TestRdar12408181.py
@@ -11,7 +11,7 @@ import lldbutil
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
class Rdar12408181TestCase(TestBase):
- mydir = os.path.join("lang", "objc", "rdar-12408181")
+ mydir = TestBase.compute_mydir(__file__)
@dsym_test
def test_nswindow_count_with_dsym(self):
diff --git a/lldb/test/lang/objc/real-definition/TestRealDefinition.py b/lldb/test/lang/objc/real-definition/TestRealDefinition.py
index 8530f3570cb..dd476fc37d3 100644
--- a/lldb/test/lang/objc/real-definition/TestRealDefinition.py
+++ b/lldb/test/lang/objc/real-definition/TestRealDefinition.py
@@ -8,7 +8,7 @@ import lldbutil
class TestRealDefinition(TestBase):
- mydir = os.path.join("lang", "objc", "real-definition")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/lang/objc/self/TestObjCSelf.py b/lldb/test/lang/objc/self/TestObjCSelf.py
index e7733ab2e74..cc58bf2185f 100644
--- a/lldb/test/lang/objc/self/TestObjCSelf.py
+++ b/lldb/test/lang/objc/self/TestObjCSelf.py
@@ -7,7 +7,7 @@ import lldbutil
class ObjCSelfTestCase(TestBase):
- mydir = os.path.join("lang", "objc", "self")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/linux/builtin_trap/TestBuiltinTrap.py b/lldb/test/linux/builtin_trap/TestBuiltinTrap.py
index ef4e370a5f4..85c934d6f11 100644
--- a/lldb/test/linux/builtin_trap/TestBuiltinTrap.py
+++ b/lldb/test/linux/builtin_trap/TestBuiltinTrap.py
@@ -11,7 +11,7 @@ import lldbutil
class BuiltinTrapTestCase(TestBase):
- mydir = os.path.join("linux", "builtin_trap")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/lldbtest.py b/lldb/test/lldbtest.py
index be34f70b5ae..1cf528df480 100644
--- a/lldb/test/lldbtest.py
+++ b/lldb/test/lldbtest.py
@@ -829,11 +829,19 @@ class Base(unittest2.TestCase):
# Keep track of the old current working directory.
oldcwd = None
-
+
+ @staticmethod
+ def compute_mydir(test_file):
+ '''Subclasses should call this function to correctly calculate the required "mydir" attribute as follows:
+
+ mydir = TestBase.compute_mydir(__file__)'''
+ test_dir = os.path.dirname(test_file)
+ return test_dir[len(os.environ["LLDB_TEST"])+1:]
+
def TraceOn(self):
"""Returns True if we are in trace mode (tracing detailed test execution)."""
return traceAlways
-
+
@classmethod
def setUpClass(cls):
"""
diff --git a/lldb/test/logging/TestLogging.py b/lldb/test/logging/TestLogging.py
index 368708f3353..60aaeedf145 100644
--- a/lldb/test/logging/TestLogging.py
+++ b/lldb/test/logging/TestLogging.py
@@ -9,7 +9,7 @@ from lldbtest import *
class LogTestCase(TestBase):
- mydir = "logging"
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/macosx/add-dsym/TestAddDsymMidExecutionCommand.py b/lldb/test/macosx/add-dsym/TestAddDsymMidExecutionCommand.py
index ce84b2fe87a..23affe37b96 100644
--- a/lldb/test/macosx/add-dsym/TestAddDsymMidExecutionCommand.py
+++ b/lldb/test/macosx/add-dsym/TestAddDsymMidExecutionCommand.py
@@ -9,7 +9,7 @@ from lldbtest import *
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
class AddDsymMidExecutionCommandCase(TestBase):
- mydir = os.path.join ("macosx", "add-dsym")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/macosx/debug-info/apple_types/TestAppleTypesIsProduced.py b/lldb/test/macosx/debug-info/apple_types/TestAppleTypesIsProduced.py
index fd5f1c23efe..34556a77404 100644
--- a/lldb/test/macosx/debug-info/apple_types/TestAppleTypesIsProduced.py
+++ b/lldb/test/macosx/debug-info/apple_types/TestAppleTypesIsProduced.py
@@ -10,7 +10,7 @@ from lldbutil import symbol_type_to_str
class AppleTypesTestCase(TestBase):
- mydir = os.path.join("macosx", "debug-info", "apple_types")
+ mydir = TestBase.compute_mydir(__file__)
#rdar://problem/11166975
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
diff --git a/lldb/test/macosx/order/TestOrderFile.py b/lldb/test/macosx/order/TestOrderFile.py
index 393dbb48365..5ee92421b93 100644
--- a/lldb/test/macosx/order/TestOrderFile.py
+++ b/lldb/test/macosx/order/TestOrderFile.py
@@ -10,7 +10,7 @@ from lldbtest import *
class OrderFileTestCase(TestBase):
- mydir = os.path.join("macosx", "order")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/macosx/universal/TestUniversal.py b/lldb/test/macosx/universal/TestUniversal.py
index 59c21e11e60..fd1683031c5 100644
--- a/lldb/test/macosx/universal/TestUniversal.py
+++ b/lldb/test/macosx/universal/TestUniversal.py
@@ -8,7 +8,7 @@ import lldbutil
class UniversalTestCase(TestBase):
- mydir = os.path.join("macosx", "universal")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/python_api/debugger/TestDebuggerAPI.py b/lldb/test/python_api/debugger/TestDebuggerAPI.py
index a560cbe5377..42dcc24df95 100644
--- a/lldb/test/python_api/debugger/TestDebuggerAPI.py
+++ b/lldb/test/python_api/debugger/TestDebuggerAPI.py
@@ -9,7 +9,7 @@ from lldbtest import TestBase, python_api_test
class DebuggerAPITestCase(TestBase):
- mydir = os.path.join("python_api", "debugger")
+ mydir = TestBase.compute_mydir(__file__)
@python_api_test
def test_debugger_api_boundary_condition(self):
diff --git a/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py b/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py
index 6ec0350d3d5..81b853a5854 100644
--- a/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py
+++ b/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py
@@ -19,7 +19,7 @@ from lldbtest import *
class APIDefaultConstructorTestCase(TestBase):
- mydir = os.path.join("python_api", "default-constructor")
+ mydir = TestBase.compute_mydir(__file__)
@python_api_test
def test_SBAddress(self):
diff --git a/lldb/test/python_api/disassemble-raw-data/TestDisassembleRawData.py b/lldb/test/python_api/disassemble-raw-data/TestDisassembleRawData.py
index e716545ec17..d6d2dc6087e 100644
--- a/lldb/test/python_api/disassemble-raw-data/TestDisassembleRawData.py
+++ b/lldb/test/python_api/disassemble-raw-data/TestDisassembleRawData.py
@@ -10,7 +10,7 @@ from lldbtest import *
class DisassembleRawDataTestCase(TestBase):
- mydir = os.path.join("python_api", "disassemble-raw-data")
+ mydir = TestBase.compute_mydir(__file__)
@python_api_test
def test_disassemble_raw_data(self):
diff --git a/lldb/test/python_api/disassemble-raw-data/TestDisassemble_VST1_64.py b/lldb/test/python_api/disassemble-raw-data/TestDisassemble_VST1_64.py
index d2e985a12ca..455534518b0 100644
--- a/lldb/test/python_api/disassemble-raw-data/TestDisassemble_VST1_64.py
+++ b/lldb/test/python_api/disassemble-raw-data/TestDisassemble_VST1_64.py
@@ -10,7 +10,7 @@ from lldbtest import *
class Disassemble_VST1_64(TestBase):
- mydir = os.path.join("python_api", "disassemble-raw-data")
+ mydir = TestBase.compute_mydir(__file__)
@python_api_test
def test_disassemble_invalid_vst_1_64_raw_data(self):
diff --git a/lldb/test/python_api/event/TestEvents.py b/lldb/test/python_api/event/TestEvents.py
index a9a7edcbbfa..64e95ea3c3c 100644
--- a/lldb/test/python_api/event/TestEvents.py
+++ b/lldb/test/python_api/event/TestEvents.py
@@ -10,7 +10,7 @@ from lldbtest import *
class EventAPITestCase(TestBase):
- mydir = os.path.join("python_api", "event")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
diff --git a/lldb/test/python_api/formatters/TestFormattersSBAPI.py b/lldb/test/python_api/formatters/TestFormattersSBAPI.py
index d304a17dcf5..67aa639fd7b 100644
--- a/lldb/test/python_api/formatters/TestFormattersSBAPI.py
+++ b/lldb/test/python_api/formatters/TestFormattersSBAPI.py
@@ -8,7 +8,7 @@ import lldbutil
class SBFormattersAPITestCase(TestBase):
- mydir = os.path.join("python_api", "formatters")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
diff --git a/lldb/test/python_api/frame/TestFrames.py b/lldb/test/python_api/frame/TestFrames.py
index 6e1ba08c5d6..050c51a524a 100644
--- a/lldb/test/python_api/frame/TestFrames.py
+++ b/lldb/test/python_api/frame/TestFrames.py
@@ -11,7 +11,7 @@ from lldbtest import *
class FrameAPITestCase(TestBase):
- mydir = os.path.join("python_api", "frame")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
diff --git a/lldb/test/python_api/frame/inlines/TestInlinedFrame.py b/lldb/test/python_api/frame/inlines/TestInlinedFrame.py
index 998c3a61b03..f7d1517f7d5 100644
--- a/lldb/test/python_api/frame/inlines/TestInlinedFrame.py
+++ b/lldb/test/python_api/frame/inlines/TestInlinedFrame.py
@@ -10,7 +10,7 @@ from lldbtest import *
class InlinedFrameAPITestCase(TestBase):
- mydir = os.path.join("python_api", "frame", "inlines")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
diff --git a/lldb/test/python_api/function_symbol/TestDisasmAPI.py b/lldb/test/python_api/function_symbol/TestDisasmAPI.py
index 11e68162ea8..14ff0058bf9 100644
--- a/lldb/test/python_api/function_symbol/TestDisasmAPI.py
+++ b/lldb/test/python_api/function_symbol/TestDisasmAPI.py
@@ -10,7 +10,7 @@ from lldbtest import *
class DisasmAPITestCase(TestBase):
- mydir = os.path.join("python_api", "function_symbol")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
diff --git a/lldb/test/python_api/function_symbol/TestSymbolAPI.py b/lldb/test/python_api/function_symbol/TestSymbolAPI.py
index 60d4ffb1d7c..564a60f1951 100644
--- a/lldb/test/python_api/function_symbol/TestSymbolAPI.py
+++ b/lldb/test/python_api/function_symbol/TestSymbolAPI.py
@@ -10,7 +10,7 @@ from lldbtest import *
class SymbolAPITestCase(TestBase):
- mydir = os.path.join("python_api", "function_symbol")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
diff --git a/lldb/test/python_api/hello_world/TestHelloWorld.py b/lldb/test/python_api/hello_world/TestHelloWorld.py
index bfaeaded2ac..088477b79d8 100644
--- a/lldb/test/python_api/hello_world/TestHelloWorld.py
+++ b/lldb/test/python_api/hello_world/TestHelloWorld.py
@@ -8,7 +8,7 @@ from lldbtest import *
class HelloWorldTestCase(TestBase):
- mydir = os.path.join("python_api", "hello_world")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
diff --git a/lldb/test/python_api/input_reader/TestInputReaderCallback.py b/lldb/test/python_api/input_reader/TestInputReaderCallback.py
index 6a37f8b5a4c..8fea84426f1 100644
--- a/lldb/test/python_api/input_reader/TestInputReaderCallback.py
+++ b/lldb/test/python_api/input_reader/TestInputReaderCallback.py
@@ -8,7 +8,7 @@ from lldbtest import TestBase, python_api_test, dwarf_test
class InputReaderCallbackCase(TestBase):
- mydir = os.path.join("python_api", "input_reader")
+ mydir = TestBase.compute_mydir(__file__)
@python_api_test
@dwarf_test
diff --git a/lldb/test/python_api/interpreter/TestCommandInterpreterAPI.py b/lldb/test/python_api/interpreter/TestCommandInterpreterAPI.py
index c08d038b634..b23c4974d35 100644
--- a/lldb/test/python_api/interpreter/TestCommandInterpreterAPI.py
+++ b/lldb/test/python_api/interpreter/TestCommandInterpreterAPI.py
@@ -8,7 +8,7 @@ from lldbtest import *
class CommandInterpreterAPICase(TestBase):
- mydir = os.path.join("python_api", "interpreter")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
diff --git a/lldb/test/python_api/lldbutil/frame/TestFrameUtils.py b/lldb/test/python_api/lldbutil/frame/TestFrameUtils.py
index 070fe798842..2b7f341b3b4 100644
--- a/lldb/test/python_api/lldbutil/frame/TestFrameUtils.py
+++ b/lldb/test/python_api/lldbutil/frame/TestFrameUtils.py
@@ -9,7 +9,7 @@ from lldbtest import *
class FrameUtilsTestCase(TestBase):
- mydir = os.path.join("python_api", "lldbutil", "frame")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/python_api/lldbutil/iter/TestLLDBIterator.py b/lldb/test/python_api/lldbutil/iter/TestLLDBIterator.py
index 47fe1659019..8983252a414 100644
--- a/lldb/test/python_api/lldbutil/iter/TestLLDBIterator.py
+++ b/lldb/test/python_api/lldbutil/iter/TestLLDBIterator.py
@@ -10,7 +10,7 @@ from lldbtest import *
class LLDBIteratorTestCase(TestBase):
- mydir = os.path.join("python_api", "lldbutil", "iter")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/python_api/lldbutil/iter/TestRegistersIterator.py b/lldb/test/python_api/lldbutil/iter/TestRegistersIterator.py
index 9b07625c84d..2f6de65e8c4 100644
--- a/lldb/test/python_api/lldbutil/iter/TestRegistersIterator.py
+++ b/lldb/test/python_api/lldbutil/iter/TestRegistersIterator.py
@@ -10,7 +10,7 @@ from lldbtest import *
class RegistersIteratorTestCase(TestBase):
- mydir = os.path.join("python_api", "lldbutil", "iter")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/python_api/lldbutil/process/TestPrintStackTraces.py b/lldb/test/python_api/lldbutil/process/TestPrintStackTraces.py
index bb1d303c155..d845c7903bc 100644
--- a/lldb/test/python_api/lldbutil/process/TestPrintStackTraces.py
+++ b/lldb/test/python_api/lldbutil/process/TestPrintStackTraces.py
@@ -10,7 +10,7 @@ from lldbtest import *
class ThreadsStackTracesTestCase(TestBase):
- mydir = "python_api/lldbutil/process"
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/python_api/module_section/TestModuleAndSection.py b/lldb/test/python_api/module_section/TestModuleAndSection.py
index 7038d6e7109..44a242da737 100644
--- a/lldb/test/python_api/module_section/TestModuleAndSection.py
+++ b/lldb/test/python_api/module_section/TestModuleAndSection.py
@@ -11,7 +11,7 @@ from lldbutil import symbol_type_to_str
class ModuleAndSectionAPIsTestCase(TestBase):
- mydir = os.path.join("python_api", "module_section")
+ mydir = TestBase.compute_mydir(__file__)
@python_api_test
def test_module_and_section(self):
diff --git a/lldb/test/python_api/objc_type/TestObjCType.py b/lldb/test/python_api/objc_type/TestObjCType.py
index 35f83c4b15e..ce31076d611 100644
--- a/lldb/test/python_api/objc_type/TestObjCType.py
+++ b/lldb/test/python_api/objc_type/TestObjCType.py
@@ -10,7 +10,7 @@ from lldbtest import *
class ObjCSBTypeTestCase(TestBase):
- mydir = os.path.join("python_api", "objc_type")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
diff --git a/lldb/test/python_api/process/TestProcessAPI.py b/lldb/test/python_api/process/TestProcessAPI.py
index 016fc1271cd..245c735e41b 100644
--- a/lldb/test/python_api/process/TestProcessAPI.py
+++ b/lldb/test/python_api/process/TestProcessAPI.py
@@ -10,7 +10,7 @@ from lldbtest import *
class ProcessAPITestCase(TestBase):
- mydir = os.path.join("python_api", "process")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
diff --git a/lldb/test/python_api/process/io/TestProcessIO.py b/lldb/test/python_api/process/io/TestProcessIO.py
index 1096bce85a5..7352a8e9d35 100644
--- a/lldb/test/python_api/process/io/TestProcessIO.py
+++ b/lldb/test/python_api/process/io/TestProcessIO.py
@@ -7,7 +7,7 @@ from lldbtest import *
class ProcessIOTestCase(TestBase):
- mydir = os.path.join("python_api", "process", "io")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
diff --git a/lldb/test/python_api/rdar-12481949/Test-rdar-12481949.py b/lldb/test/python_api/rdar-12481949/Test-rdar-12481949.py
index 614a7edf56b..808e64be7f5 100644
--- a/lldb/test/python_api/rdar-12481949/Test-rdar-12481949.py
+++ b/lldb/test/python_api/rdar-12481949/Test-rdar-12481949.py
@@ -11,7 +11,7 @@ import lldbutil
class Radar12481949DataFormatterTestCase(TestBase):
# test for rdar://problem/12481949
- mydir = os.path.join("python_api", "rdar-12481949")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
diff --git a/lldb/test/python_api/sbdata/TestSBData.py b/lldb/test/python_api/sbdata/TestSBData.py
index 4fd227fcc47..046339ba09b 100644
--- a/lldb/test/python_api/sbdata/TestSBData.py
+++ b/lldb/test/python_api/sbdata/TestSBData.py
@@ -10,7 +10,7 @@ import lldbutil
class SBDataAPICase(TestBase):
- mydir = os.path.join("python_api", "sbdata")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
diff --git a/lldb/test/python_api/symbol-context/TestSymbolContext.py b/lldb/test/python_api/symbol-context/TestSymbolContext.py
index 30d62acab45..d7574ea20d1 100644
--- a/lldb/test/python_api/symbol-context/TestSymbolContext.py
+++ b/lldb/test/python_api/symbol-context/TestSymbolContext.py
@@ -10,7 +10,7 @@ from lldbtest import *
class SymbolContextAPITestCase(TestBase):
- mydir = os.path.join("python_api", "symbol-context")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
diff --git a/lldb/test/python_api/target/TestTargetAPI.py b/lldb/test/python_api/target/TestTargetAPI.py
index 8f2a6dee01b..5516ee667ec 100644
--- a/lldb/test/python_api/target/TestTargetAPI.py
+++ b/lldb/test/python_api/target/TestTargetAPI.py
@@ -10,7 +10,7 @@ from lldbtest import *
class TargetAPITestCase(TestBase):
- mydir = os.path.join("python_api", "target")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
diff --git a/lldb/test/python_api/thread/TestThreadAPI.py b/lldb/test/python_api/thread/TestThreadAPI.py
index 1d22550bbfd..7cb97cd524a 100644
--- a/lldb/test/python_api/thread/TestThreadAPI.py
+++ b/lldb/test/python_api/thread/TestThreadAPI.py
@@ -10,7 +10,7 @@ from lldbtest import *
class ThreadAPITestCase(TestBase):
- mydir = os.path.join("python_api", "thread")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
diff --git a/lldb/test/python_api/type/TestTypeList.py b/lldb/test/python_api/type/TestTypeList.py
index a06259dc85d..ce0a1664d34 100644
--- a/lldb/test/python_api/type/TestTypeList.py
+++ b/lldb/test/python_api/type/TestTypeList.py
@@ -10,7 +10,7 @@ from lldbtest import *
class TypeAndTypeListTestCase(TestBase):
- mydir = os.path.join("python_api", "type")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
diff --git a/lldb/test/python_api/value/TestValueAPI.py b/lldb/test/python_api/value/TestValueAPI.py
index 0d6d341bf0f..024088836a7 100644
--- a/lldb/test/python_api/value/TestValueAPI.py
+++ b/lldb/test/python_api/value/TestValueAPI.py
@@ -10,7 +10,7 @@ from lldbtest import *
class ValueAPITestCase(TestBase):
- mydir = os.path.join("python_api", "value")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
diff --git a/lldb/test/python_api/value/change_values/TestChangeValueAPI.py b/lldb/test/python_api/value/change_values/TestChangeValueAPI.py
index 3d80fa3411c..b716335df71 100644
--- a/lldb/test/python_api/value/change_values/TestChangeValueAPI.py
+++ b/lldb/test/python_api/value/change_values/TestChangeValueAPI.py
@@ -10,7 +10,7 @@ from lldbtest import *
class ChangeValueAPITestCase(TestBase):
- mydir = os.path.join("python_api", "value", "change_values")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
diff --git a/lldb/test/python_api/value/linked_list/TestValueAPILinkedList.py b/lldb/test/python_api/value/linked_list/TestValueAPILinkedList.py
index f022ec43e4d..c20cc319537 100644
--- a/lldb/test/python_api/value/linked_list/TestValueAPILinkedList.py
+++ b/lldb/test/python_api/value/linked_list/TestValueAPILinkedList.py
@@ -11,7 +11,7 @@ from lldbtest import *
class ValueAsLinkedListTestCase(TestBase):
- mydir = os.path.join("python_api", "value", "linked_list")
+ mydir = TestBase.compute_mydir(__file__)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
diff --git a/lldb/test/python_api/watchpoint/TestSetWatchpoint.py b/lldb/test/python_api/watchpoint/TestSetWatchpoint.py
index 8c090196d76..37a9e552737 100644
--- a/lldb/test/python_api/watchpoint/TestSetWatchpoint.py
+++ b/lldb/test/python_api/watchpoint/TestSetWatchpoint.py
@@ -10,7 +10,7 @@ from lldbtest import *
class SetWatchpointAPITestCase(TestBase):
- mydir = os.path.join("python_api", "watchpoint")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/python_api/watchpoint/TestWatchpointIgnoreCount.py b/lldb/test/python_api/watchpoint/TestWatchpointIgnoreCount.py
index db169e8b869..b79ef255186 100644
--- a/lldb/test/python_api/watchpoint/TestWatchpointIgnoreCount.py
+++ b/lldb/test/python_api/watchpoint/TestWatchpointIgnoreCount.py
@@ -10,7 +10,7 @@ from lldbtest import *
class WatchpointIgnoreCountTestCase(TestBase):
- mydir = os.path.join("python_api", "watchpoint")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/python_api/watchpoint/TestWatchpointIter.py b/lldb/test/python_api/watchpoint/TestWatchpointIter.py
index e0fd624a567..8efa10b914b 100644
--- a/lldb/test/python_api/watchpoint/TestWatchpointIter.py
+++ b/lldb/test/python_api/watchpoint/TestWatchpointIter.py
@@ -10,7 +10,7 @@ from lldbtest import *
class WatchpointIteratorTestCase(TestBase):
- mydir = os.path.join("python_api", "watchpoint")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/python_api/watchpoint/condition/TestWatchpointConditionAPI.py b/lldb/test/python_api/watchpoint/condition/TestWatchpointConditionAPI.py
index f756626991e..a38b9d6b1e6 100644
--- a/lldb/test/python_api/watchpoint/condition/TestWatchpointConditionAPI.py
+++ b/lldb/test/python_api/watchpoint/condition/TestWatchpointConditionAPI.py
@@ -10,7 +10,7 @@ from lldbtest import *
class WatchpointConditionAPITestCase(TestBase):
- mydir = os.path.join("python_api", "watchpoint", "condition")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/python_api/watchpoint/watchlocation/TestSetWatchlocation.py b/lldb/test/python_api/watchpoint/watchlocation/TestSetWatchlocation.py
index d9904e891d4..9380c4c2346 100644
--- a/lldb/test/python_api/watchpoint/watchlocation/TestSetWatchlocation.py
+++ b/lldb/test/python_api/watchpoint/watchlocation/TestSetWatchlocation.py
@@ -10,7 +10,7 @@ from lldbtest import *
class SetWatchlocationAPITestCase(TestBase):
- mydir = os.path.join("python_api", "watchpoint", "watchlocation")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/python_api/watchpoint/watchlocation/TestTargetWatchAddress.py b/lldb/test/python_api/watchpoint/watchlocation/TestTargetWatchAddress.py
index 4d05fd6c8cc..c051f98f3e7 100644
--- a/lldb/test/python_api/watchpoint/watchlocation/TestTargetWatchAddress.py
+++ b/lldb/test/python_api/watchpoint/watchlocation/TestTargetWatchAddress.py
@@ -10,7 +10,7 @@ from lldbtest import *
class TargetWatchAddressAPITestCase(TestBase):
- mydir = os.path.join("python_api", "watchpoint", "watchlocation")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/settings/TestSettings.py b/lldb/test/settings/TestSettings.py
index a02e5d080fa..42d8b7d744d 100644
--- a/lldb/test/settings/TestSettings.py
+++ b/lldb/test/settings/TestSettings.py
@@ -9,7 +9,7 @@ from lldbtest import *
class SettingsCommandTestCase(TestBase):
- mydir = "settings"
+ mydir = TestBase.compute_mydir(__file__)
@classmethod
def classCleanup(cls):
diff --git a/lldb/test/source-manager/TestSourceManager.py b/lldb/test/source-manager/TestSourceManager.py
index 4ef4cca2f82..879b9f1b97e 100644
--- a/lldb/test/source-manager/TestSourceManager.py
+++ b/lldb/test/source-manager/TestSourceManager.py
@@ -16,7 +16,7 @@ import lldbutil
class SourceManagerTestCase(TestBase):
- mydir = "source-manager"
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/terminal/TestSTTYBeforeAndAfter.py b/lldb/test/terminal/TestSTTYBeforeAndAfter.py
index 947ad888e5f..26e3defaf72 100644
--- a/lldb/test/terminal/TestSTTYBeforeAndAfter.py
+++ b/lldb/test/terminal/TestSTTYBeforeAndAfter.py
@@ -10,7 +10,7 @@ from lldbtest import *
class CommandLineCompletionTestCase(TestBase):
- mydir = os.path.join("functionalities", "completion")
+ mydir = TestBase.compute_mydir(__file__)
@classmethod
def classCleanup(cls):
diff --git a/lldb/test/types/HideTestFailures.py b/lldb/test/types/HideTestFailures.py
index 01a1a4a635e..14c7422ec4e 100644
--- a/lldb/test/types/HideTestFailures.py
+++ b/lldb/test/types/HideTestFailures.py
@@ -10,9 +10,9 @@ from lldbtest import *
# rdar://problem/9649573
# Capture the lldb and gdb-remote log files for test failures when run with no "-w" option
-class DebugIntegerTypesFailures(AbstractBase.GenericTester):
+class DebugIntegerTypesFailures(TestBase):
- mydir = "types"
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/types/TestFloatTypes.py b/lldb/test/types/TestFloatTypes.py
index 6bbc22807a9..1e17bd6906b 100644
--- a/lldb/test/types/TestFloatTypes.py
+++ b/lldb/test/types/TestFloatTypes.py
@@ -10,7 +10,7 @@ from lldbtest import dsym_test, dwarf_test
class FloatTypesTestCase(AbstractBase.GenericTester):
- mydir = "types"
+ mydir = AbstractBase.GenericTester.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/types/TestFloatTypesExpr.py b/lldb/test/types/TestFloatTypesExpr.py
index 0402415e5c6..f09f88aeb42 100644
--- a/lldb/test/types/TestFloatTypesExpr.py
+++ b/lldb/test/types/TestFloatTypesExpr.py
@@ -10,7 +10,7 @@ from lldbtest import dsym_test, dwarf_test
class FloatTypesExprTestCase(AbstractBase.GenericTester):
- mydir = "types"
+ mydir = AbstractBase.GenericTester.compute_mydir(__file__)
# rdar://problem/8493023
# test/types failures for Test*TypesExpr.py: element offset computed wrong and sign error?
diff --git a/lldb/test/types/TestIntegerTypes.py b/lldb/test/types/TestIntegerTypes.py
index d8ba5a3fbf3..60c75433231 100644
--- a/lldb/test/types/TestIntegerTypes.py
+++ b/lldb/test/types/TestIntegerTypes.py
@@ -10,7 +10,7 @@ from lldbtest import dsym_test, dwarf_test
class IntegerTypesTestCase(AbstractBase.GenericTester):
- mydir = "types"
+ mydir = AbstractBase.GenericTester.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/types/TestIntegerTypesExpr.py b/lldb/test/types/TestIntegerTypesExpr.py
index 1d7b3183389..6a0322f7511 100644
--- a/lldb/test/types/TestIntegerTypesExpr.py
+++ b/lldb/test/types/TestIntegerTypesExpr.py
@@ -10,7 +10,7 @@ from lldbtest import dsym_test, dwarf_test
class IntegerTypesExprTestCase(AbstractBase.GenericTester):
- mydir = "types"
+ mydir = AbstractBase.GenericTester.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/warnings/uuid/TestAddDsymCommand.py b/lldb/test/warnings/uuid/TestAddDsymCommand.py
index e697f842e6d..aa9048d79dc 100644
--- a/lldb/test/warnings/uuid/TestAddDsymCommand.py
+++ b/lldb/test/warnings/uuid/TestAddDsymCommand.py
@@ -9,7 +9,7 @@ from lldbtest import *
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
class AddDsymCommandCase(TestBase):
- mydir = os.path.join("warnings", "uuid")
+ mydir = TestBase.compute_mydir(__file__)
def setUp(self):
TestBase.setUp(self)
OpenPOWER on IntegriCloud