[Lldb-commits] [lldb] r352073 - Rename test directory
Adrian Prantl via lldb-commits
lldb-commits at lists.llvm.org
Thu Jan 24 10:24:18 PST 2019
Author: adrian
Date: Thu Jan 24 10:24:17 2019
New Revision: 352073
URL: http://llvm.org/viewvc/llvm-project?rev=352073&view=rev
Log:
Rename test directory
Added:
lldb/trunk/packages/Python/lldbsuite/test/expression_command/scoped_enums/
lldb/trunk/packages/Python/lldbsuite/test/expression_command/scoped_enums/Makefile
- copied, changed from r352072, lldb/trunk/packages/Python/lldbsuite/test/expression_command/radar_43822994/Makefile
lldb/trunk/packages/Python/lldbsuite/test/expression_command/scoped_enums/TestScopedEnumType.py
- copied, changed from r352072, lldb/trunk/packages/Python/lldbsuite/test/expression_command/radar_43822994/TestScopedEnumType.py
lldb/trunk/packages/Python/lldbsuite/test/expression_command/scoped_enums/main.cpp
- copied, changed from r352072, lldb/trunk/packages/Python/lldbsuite/test/expression_command/radar_43822994/main.cpp
Removed:
lldb/trunk/packages/Python/lldbsuite/test/expression_command/radar_43822994/Makefile
lldb/trunk/packages/Python/lldbsuite/test/expression_command/radar_43822994/TestScopedEnumType.py
lldb/trunk/packages/Python/lldbsuite/test/expression_command/radar_43822994/main.cpp
Removed: lldb/trunk/packages/Python/lldbsuite/test/expression_command/radar_43822994/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/expression_command/radar_43822994/Makefile?rev=352072&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/expression_command/radar_43822994/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/expression_command/radar_43822994/Makefile (removed)
@@ -1,6 +0,0 @@
-LEVEL = ../../make
-
-CXX_SOURCES := main.cpp
-CXXFLAGS += -std=c++11
-
-include $(LEVEL)/Makefile.rules
Removed: lldb/trunk/packages/Python/lldbsuite/test/expression_command/radar_43822994/TestScopedEnumType.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/expression_command/radar_43822994/TestScopedEnumType.py?rev=352072&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/expression_command/radar_43822994/TestScopedEnumType.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/expression_command/radar_43822994/TestScopedEnumType.py (removed)
@@ -1,45 +0,0 @@
-from __future__ import print_function
-
-
-import lldb
-from lldbsuite.test.decorators import *
-from lldbsuite.test.lldbtest import *
-from lldbsuite.test import lldbutil
-
-
-class ScopedEnumType(TestBase):
-
- mydir = TestBase.compute_mydir(__file__)
-
- @skipIf(dwarf_version=['<', '4'])
- def test(self):
- self.build()
-
- self.main_source = "main.cpp"
- self.main_source_spec = lldb.SBFileSpec(self.main_source)
- (target, process, thread, bkpt) = lldbutil.run_to_source_breakpoint(self,
- '// Set break point at this line.', self.main_source_spec)
- frame = thread.GetFrameAtIndex(0)
-
- self.expect("expr f == Foo::FooBar",
- substrs=['(bool) $0 = true'])
-
- value = frame.EvaluateExpression("f == Foo::FooBar")
- self.assertTrue(value.IsValid())
- self.assertTrue(value.GetError().Success())
- self.assertEqual(value.GetValueAsUnsigned(), 1)
-
- value = frame.EvaluateExpression("b == BarBar")
- self.assertTrue(value.IsValid())
- self.assertTrue(value.GetError().Success())
- self.assertEqual(value.GetValueAsUnsigned(), 1)
-
- ## b is not a Foo
- value = frame.EvaluateExpression("b == Foo::FooBar")
- self.assertTrue(value.IsValid())
- self.assertFalse(value.GetError().Success())
-
- ## integral is not implicitly convertible to a scoped enum
- value = frame.EvaluateExpression("1 == Foo::FooBar")
- self.assertTrue(value.IsValid())
- self.assertFalse(value.GetError().Success())
Removed: lldb/trunk/packages/Python/lldbsuite/test/expression_command/radar_43822994/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/expression_command/radar_43822994/main.cpp?rev=352072&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/expression_command/radar_43822994/main.cpp (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/expression_command/radar_43822994/main.cpp (removed)
@@ -1,16 +0,0 @@
-enum class Foo {
- FooBar = 42
-};
-
-enum Bar {
- BarBar = 3,
- BarBarBar = 42
-};
-
-int main(int argc, const char **argv) {
- Foo f = Foo::FooBar;
- Bar b = BarBar;
- bool b1 = f == Foo::FooBar;
- bool b2 = b == BarBar;
- return 0; // Set break point at this line.
-}
Copied: lldb/trunk/packages/Python/lldbsuite/test/expression_command/scoped_enums/Makefile (from r352072, lldb/trunk/packages/Python/lldbsuite/test/expression_command/radar_43822994/Makefile)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/expression_command/scoped_enums/Makefile?p2=lldb/trunk/packages/Python/lldbsuite/test/expression_command/scoped_enums/Makefile&p1=lldb/trunk/packages/Python/lldbsuite/test/expression_command/radar_43822994/Makefile&r1=352072&r2=352073&rev=352073&view=diff
==============================================================================
(empty)
Copied: lldb/trunk/packages/Python/lldbsuite/test/expression_command/scoped_enums/TestScopedEnumType.py (from r352072, lldb/trunk/packages/Python/lldbsuite/test/expression_command/radar_43822994/TestScopedEnumType.py)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/expression_command/scoped_enums/TestScopedEnumType.py?p2=lldb/trunk/packages/Python/lldbsuite/test/expression_command/scoped_enums/TestScopedEnumType.py&p1=lldb/trunk/packages/Python/lldbsuite/test/expression_command/radar_43822994/TestScopedEnumType.py&r1=352072&r2=352073&rev=352073&view=diff
==============================================================================
(empty)
Copied: lldb/trunk/packages/Python/lldbsuite/test/expression_command/scoped_enums/main.cpp (from r352072, lldb/trunk/packages/Python/lldbsuite/test/expression_command/radar_43822994/main.cpp)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/expression_command/scoped_enums/main.cpp?p2=lldb/trunk/packages/Python/lldbsuite/test/expression_command/scoped_enums/main.cpp&p1=lldb/trunk/packages/Python/lldbsuite/test/expression_command/radar_43822994/main.cpp&r1=352072&r2=352073&rev=352073&view=diff
==============================================================================
(empty)
More information about the lldb-commits
mailing list