Author: Michael Buch Date: 2022-10-31T14:35:37Z New Revision: 9dd413a1be61f8fd84e67d255a245260755d8230
URL: https://github.com/llvm/llvm-project/commit/9dd413a1be61f8fd84e67d255a245260755d8230 DIFF: https://github.com/llvm/llvm-project/commit/9dd413a1be61f8fd84e67d255a245260755d8230.diff LOG: [lldb][Test] Fix TestFrameFormatNameWithArgs.test on Linux Be less strict about the `std::` namespace string. Depending on platform it may contain an inline namespace, e.g., `__1`. Added: Modified: lldb/test/Shell/Settings/TestFrameFormatNameWithArgs.test Removed: ################################################################################ diff --git a/lldb/test/Shell/Settings/TestFrameFormatNameWithArgs.test b/lldb/test/Shell/Settings/TestFrameFormatNameWithArgs.test index 9cf3dba3d6590..ab16c656624d8 100644 --- a/lldb/test/Shell/Settings/TestFrameFormatNameWithArgs.test +++ b/lldb/test/Shell/Settings/TestFrameFormatNameWithArgs.test @@ -7,19 +7,19 @@ break set -n returns_func_ptr run # CHECK: frame int ns::foo<int ()>(t={{.*}}) c -# CHECK: frame int ns::foo<std::__1::function<int ()>>(t= Function = bar() ) +# CHECK: frame int ns::foo<std::{{.*}}function<int ()>>(t= Function = bar() ) c # CHECK: frame int ns::foo<(anonymous namespace)::$_0>(t={{.*}}) c -# CHECK: frame int ns::foo<std::__1::function<int ()>>(t= Function = (anonymous namespace)::anon_bar() ) +# CHECK: frame int ns::foo<std::{{.*}}function<int ()>>(t= Function = (anonymous namespace)::anon_bar() ) c -# CHECK: frame int ns::foo<void (Foo::*)(std::__1::function<int (int)> const&) const noexcept>(t={{.*}}) +# CHECK: frame int ns::foo<void (Foo::*)(std::{{.*}}function<int (int)> const&) const noexcept>(t={{.*}}) c # CHECK: frame ns::returns_func_ptr<int>((null)={{.*}}) c -# CHECK: frame void Foo::foo<std::__1::function<int ()>>(this={{.*}}, t= Function = bar() ) const +# CHECK: frame void Foo::foo<std::{{.*}}function<int ()>>(this={{.*}}, t= Function = bar() ) const c -# CHECK: frame void Foo::foo<std::__1::function<int ()>>(this={{.*}}, t= Function = (anonymous namespace)::anon_bar() ) const +# CHECK: frame void Foo::foo<std::{{.*}}function<int ()>>(this={{.*}}, t= Function = (anonymous namespace)::anon_bar() ) const c # CHECK: frame void Foo::operator<<<1ul>(this={{.*}}, (null)=0) c _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits