[Lldb-commits] [PATCH] D58273: Fix TestDataFormatterLibcxxListLoop.py test
Raphael Isemann via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Feb 15 04:21:44 PST 2019
teemperor updated this revision to Diff 186994.
teemperor edited the summary of this revision.
teemperor added a comment.
- Added #ifdef for 3.8 release.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D58273/new/
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
@@ -15,10 +15,18 @@
int_list *numbers_list = new int_list{1,2,3,4,5,6,7,8,9,10};
printf("// Set break point at this line.");
+
+#if _LIBCPP_VERSION >= 3800
+ auto *third_elem = numbers_list->__end_.__next_->__next_->__next_;
+ assert(third_elem->__as_node()->__value_ == 3);
+ auto *fifth_elem = third_elem->__next_->__next_;
+ assert(fifth_elem->__as_node()->__value_ == 5);
+#else
auto *third_elem = numbers_list->__end_.__next_->__next_->__next_;
assert(third_elem->__value_ == 3);
auto *fifth_elem = third_elem->__next_->__next_;
assert(fifth_elem->__value_ == 5);
+#endif
fifth_elem->__next_ = third_elem;
#endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58273.186994.patch
Type: text/x-patch
Size: 1089 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190215/61826617/attachment.bin>
More information about the lldb-commits
mailing list