From 49673c33b4a8ce3440a77d7565645a33ebbffb24 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Mon, 23 Feb 2015 09:58:28 -0800 Subject: [PATCH] Use all parts of suite name to detect duplicates --- beast/unit_test/suite_list.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/beast/unit_test/suite_list.h b/beast/unit_test/suite_list.h index 5efb9ee5c..26581e347 100644 --- a/beast/unit_test/suite_list.h +++ b/beast/unit_test/suite_list.h @@ -62,7 +62,9 @@ suite_list::insert (char const* name, char const* module, char const* library, { #ifndef NDEBUG { - auto const result (names_.insert (name)); + std::string s; + s = std::string(library) + "." + module + "." + name; + auto const result (names_.insert(s)); assert (result.second); // Duplicate name }