mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 22:51:50 +03:00
Fix a prof_recent/prof_sys_thread_name interaction
When both of these are enabled, the output format changes slightly. Teach the unit test about the interaction.
This commit is contained in:
parent
9b523c6c15
commit
304cdbb132
1 changed files with 12 additions and 0 deletions
|
|
@ -439,6 +439,18 @@ confirm_record(const char *template, const confirm_record_t *records,
|
|||
}
|
||||
ASSERT_CHAR(',');
|
||||
|
||||
if (opt_prof_sys_thread_name) {
|
||||
ASSERT_FORMATTED_STR("\"%s_thread_name\"",
|
||||
*type);
|
||||
ASSERT_CHAR(':');
|
||||
ASSERT_CHAR('"');
|
||||
while (*start != '"') {
|
||||
++start;
|
||||
}
|
||||
ASSERT_CHAR('"');
|
||||
ASSERT_CHAR(',');
|
||||
}
|
||||
|
||||
ASSERT_FORMATTED_STR("\"%s_time\"", *type);
|
||||
ASSERT_CHAR(':');
|
||||
while (isdigit(*start)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue