Commit f290fe12 authored by hjk's avatar hjk
Browse files

Debugger: Work around weird LLDB type reporting in auto test



std::vector<bool> gets reported as std::vector<allocator<bool>>

Change-Id: I226ebf62074dc77790716e60e88348a932cbe9f6
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent ff57228d
......@@ -3131,8 +3131,9 @@ void tst_Dumpers::dumper_data()
"v.push_back(true);\n"
"v.push_back(false);\n"
"unused(&v);\n")
// Known issue: Clang produces "std::vector<std::allocator<bool>>
% Check("v", "<5 items>", "std::vector<bool>")
% Check("v", "<5 items>", "std::vector<bool>").setForGdbOnly()
// Known issue: Clang produces "std::vector<std::allocator<bool>>
% Check("v", "<5 items>", "std::vector<std::allocator<bool>>").setForLldbOnly()
% Check("v.0", "[0]", "1", "bool")
% Check("v.1", "[1]", "0", "bool")
% Check("v.2", "[2]", "0", "bool")
......@@ -3144,10 +3145,12 @@ void tst_Dumpers::dumper_data()
"std::vector<bool> v1(65, true);\n"
"std::vector<bool> v2(65);\n"
"unused(&v1, &v2);\n")
% Check("v1", "<65 items>", "std::vector<bool>")
% Check("v1", "<65 items>", "std::vector<bool>").setForGdbOnly()
% Check("v1", "<65 items>", "std::vector<std::allocator<bool>>").setForLldbOnly()
% Check("v1.0", "[0]", "1", "bool")
% Check("v1.64", "[64]", "1", "bool")
% Check("v2", "<65 items>", "std::vector<bool>")
% Check("v2", "<65 items>", "std::vector<bool>").setForGdbOnly()
% Check("v2", "<65 items>", "std::vector<std::allocator<bool>>").setForLldbOnly()
% Check("v2.0", "[0]", "0", "bool")
% Check("v2.64", "[64]", "0", "bool");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment