From 4570d3eba0db0e322115964257f36a086d89edcb Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Tue, 10 Dec 2013 23:19:29 +0000 Subject: 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 --- lldb/test/lang/objc/objc-dynamic-value/TestObjCDynamicValue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/test/lang/objc/objc-dynamic-value') 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 -- cgit v1.2.3