Author: gclayton Date: Tue Sep 15 19:42:50 2015 New Revision: 247764 URL: http://llvm.org/viewvc/llvm-project?rev=247764&view=rev Log: Fix MacOSX since "imported" and "Imported::imported" are ambiguous. Test that we can read the global when specified with the global namespace and test that we can read "Imported::imported" correctly. The commented out test should be testing for ambiguity when just "imported" is evaluated as an expression, but that doesn't work yet.
Modified: lldb/trunk/test/lang/cpp/nsimport/TestCppNsImport.py Modified: lldb/trunk/test/lang/cpp/nsimport/TestCppNsImport.py URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/nsimport/TestCppNsImport.py?rev=247764&r1=247763&r2=247764&view=diff ============================================================================== --- lldb/trunk/test/lang/cpp/nsimport/TestCppNsImport.py (original) +++ lldb/trunk/test/lang/cpp/nsimport/TestCppNsImport.py Tue Sep 15 19:42:50 2015 @@ -85,8 +85,15 @@ class TestCppNsImport(TestBase): test_result = frame.EvaluateExpression("not_imported") self.assertTrue(test_result.IsValid() and test_result.GetValueAsSigned() == 35, "not_imported = 35") - test_result = frame.EvaluateExpression("imported") - self.assertTrue(test_result.IsValid() and test_result.GetValueAsSigned() == 99, "imported = 99") + # Disabled the "imported" test since it isn't valid. It should actually test for ambiguity + #test_result = frame.EvaluateExpression("imported") + #self.assertTrue(test_result.IsValid() and test_result.GetValueAsSigned() == 99, "imported = 99") + + test_result = frame.EvaluateExpression("::imported") + self.assertTrue(test_result.IsValid() and test_result.GetValueAsSigned() == 89, "::imported = 89") + + test_result = frame.EvaluateExpression("Imported::imported") + self.assertTrue(test_result.IsValid() and test_result.GetValueAsSigned() == 99, "Imported::imported = 99") test_result = frame.EvaluateExpression("single") self.assertTrue(test_result.IsValid() and test_result.GetValueAsSigned() == 3, "single = 3") _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits