[Lldb-commits] [lldb] r150213 - in /lldb/trunk/test/lang/cpp/dynamic-value: TestCppValueCast.py sbvalue-cast.cpp
Enrico Granata
granata.enrico at gmail.com
Thu Feb 9 16:10:27 PST 2012
Author: enrico
Date: Thu Feb 9 18:10:27 2012
New Revision: 150213
URL: http://llvm.org/viewvc/llvm-project?rev=150213&view=rev
Log:
fixing a macro name mismatch that was making our test case succeed for the wrong reason; plus a minor code change to the CPP side of the test which eases debugging efforts
Modified:
lldb/trunk/test/lang/cpp/dynamic-value/TestCppValueCast.py
lldb/trunk/test/lang/cpp/dynamic-value/sbvalue-cast.cpp
Modified: lldb/trunk/test/lang/cpp/dynamic-value/TestCppValueCast.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/dynamic-value/TestCppValueCast.py?rev=150213&r1=150212&r2=150213&view=diff
==============================================================================
--- lldb/trunk/test/lang/cpp/dynamic-value/TestCppValueCast.py (original)
+++ lldb/trunk/test/lang/cpp/dynamic-value/TestCppValueCast.py Thu Feb 9 18:10:27 2012
@@ -54,7 +54,7 @@
self.source = 'sbvalue-cast.cpp';
self.line = line_number(self.source, '// Set breakpoint here.')
self.exe_name = self.testMethodName
- self.d_virtual = {'CXX_SOURCES': self.source, 'EXE': self.exe_name, 'CFLAGS_EXTRAS': '-DDO_VIRTUAL_VIRTUAL'}
+ self.d_virtual = {'CXX_SOURCES': self.source, 'EXE': self.exe_name, 'CFLAGS_EXTRAS': '-DDO_VIRTUAL_INHERITANCE'}
self.d_regular = {'CXX_SOURCES': self.source, 'EXE': self.exe_name}
def do_sbvalue_cast (self, exe_name):
Modified: lldb/trunk/test/lang/cpp/dynamic-value/sbvalue-cast.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/dynamic-value/sbvalue-cast.cpp?rev=150213&r1=150212&r2=150213&view=diff
==============================================================================
--- lldb/trunk/test/lang/cpp/dynamic-value/sbvalue-cast.cpp (original)
+++ lldb/trunk/test/lang/cpp/dynamic-value/sbvalue-cast.cpp Thu Feb 9 18:10:27 2012
@@ -67,7 +67,9 @@
int
main(int argc, char **argv)
{
- Base *array[2] = {new DerivedA(10), new DerivedB(12)};
+ DerivedA* dA = new DerivedA(10);
+ DerivedB* dB = new DerivedB(12);
+ Base *array[2] = {dA, dB};
Base *teller = NULL;
for (int i = 0; i < 2; ++i) {
teller = array[i];
More information about the lldb-commits
mailing list