[Lldb-commits] [PATCH] D58273: Fix TestDataFormatterLibcxxListLoop.py test

Raphael Isemann via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Feb 15 01:20:47 PST 2019


teemperor created this revision.
teemperor added reviewers: shafik, zturner, labath.
Herald added subscribers: lldb-commits, jdoerfert, christof.
Herald added a project: LLDB.

The compilation of the TestDataFormatterLibcxxListLoop.py currently fails with this error:

  functionalities/data-formatter/data-formatter-stl/libcxx/list/loop/main.cpp:19:24: error: no member named '__value_' in 'std::__1::__list_node_base<int, void *>'
      assert(third_elem->__value_ == 3);
             ~~~~~~~~~~  ^

This patch makes the test compile with the current libc++.


Repository:
  rLLDB LLDB

https://reviews.llvm.org/D58273

Files:
  lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/loop/main.cpp


Index: lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/loop/main.cpp
===================================================================
--- lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/loop/main.cpp
+++ lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/loop/main.cpp
@@ -16,9 +16,9 @@
 
     printf("// Set break point at this line.");
     auto *third_elem = numbers_list->__end_.__next_->__next_->__next_;
-    assert(third_elem->__value_ == 3);
+    assert(third_elem->__as_node()->__value_ == 3);
     auto *fifth_elem = third_elem->__next_->__next_;
-    assert(fifth_elem->__value_ == 5);
+    assert(fifth_elem->__as_node()->__value_ == 5);
     fifth_elem->__next_ = third_elem;
 #endif
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58273.186972.patch
Type: text/x-patch
Size: 849 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190215/ff8e1e76/attachment.bin>


More information about the lldb-commits mailing list