Index: ppapi/tests/testing_instance.cc |
diff --git a/ppapi/tests/testing_instance.cc b/ppapi/tests/testing_instance.cc |
index 043ef0246d390d0ce8d74c28989b10280d60ca5b..b1eaae460e3b83007848706f5424b692704c2ffa 100644 |
--- a/ppapi/tests/testing_instance.cc |
+++ b/ppapi/tests/testing_instance.cc |
@@ -124,6 +124,8 @@ void TestingInstance::SetCookie(const std::string& name, |
void TestingInstance::LogTest(const std::string& test_name, |
const std::string& error_message, |
PP_TimeTicks start_time) { |
+ current_test_name_ = test_name; |
+ |
// Compute the time to run the test and save it in a string for logging: |
PP_TimeTicks end_time(pp::Module::Get()->core()->GetTimeTicks()); |
std::ostringstream number_stream; |
@@ -164,6 +166,8 @@ void TestingInstance::LogTest(const std::string& test_name, |
test_time.append(time_string); |
test_time.append(" seconds."); |
LogTestTime(test_time); |
+ |
+ current_test_name_.clear(); |
} |
void TestingInstance::AppendError(const std::string& message) { |