OSDN Git Service

RIO-8792: Print null testnames as undefined in xml logfile
authorPacketVideo CM <engbuild@pv.com>
Tue, 9 Mar 2010 05:49:29 +0000 (21:49 -0800)
committerPacketVideo CM <engbuild@pv.com>
Tue, 9 Mar 2010 05:49:29 +0000 (21:49 -0800)
engines/2way/src/pv_2way_sdkinfo.h
engines/author/src/pv_author_sdkinfo.h
engines/player/src/pv_player_sdkinfo.h
oscl/unit_test/src/xml_test_interpreter.cpp

index 1a5ed66..a5e64c5 100644 (file)
@@ -21,7 +21,7 @@
 // This header file is automatically generated at build-time
 // *** OFFICIAL RELEASE INFO -- Will not auto update
 
-#define PV2WAY_ENGINE_SDKINFO_LABEL "1300558"
+#define PV2WAY_ENGINE_SDKINFO_LABEL "1301300"
 #define PV2WAY_ENGINE_SDKINFO_DATE 0x20100305
 
 #endif //PV_2WAY_SDKINFO_H_INCLUDED
index 90d7e17..40c828b 100644 (file)
@@ -21,7 +21,7 @@
 // This header file is automatically generated at build-time
 // *** OFFICIAL RELEASE INFO -- Will not auto update
 
-#define PVAUTHOR_ENGINE_SDKINFO_LABEL "1300558"
+#define PVAUTHOR_ENGINE_SDKINFO_LABEL "1301300"
 #define PVAUTHOR_ENGINE_SDKINFO_DATE 0x20100305
 
 #endif //PV_AUTHOR_SDKINFO_H_INCLUDED
index d2f1c7b..1faedfb 100644 (file)
@@ -21,7 +21,7 @@
 // This header file is automatically generated at build-time
 // *** OFFICIAL RELEASE INFO -- Will not auto update
 
-#define PVPLAYER_ENGINE_SDKINFO_LABEL "1300558"
+#define PVPLAYER_ENGINE_SDKINFO_LABEL "1301300"
 #define PVPLAYER_ENGINE_SDKINFO_DATE 0x20100305
 
 #endif //PV_PLAYER_SDKINFO_H_INCLUDED
index 589987f..e1ba4a1 100644 (file)
@@ -1,5 +1,5 @@
 /* ------------------------------------------------------------------
- * Copyright (C) 1998-2009 PacketVideo
+ * Copyright (C) 1998-2010 PacketVideo
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -91,7 +91,14 @@ xml_test_interpreter::interpretation(const test_result& result, _STRING executab
     for (iter = result.subresults().begin(); iter != end; ++iter)
     {
         test_result& sub_result = *iter;
-        doc.addAttribute("name", sub_result.get_name());
+        if (sub_result.get_name() == NULL)
+        {
+            doc.addAttribute("name", "undefined");
+        }
+        else
+        {
+            doc.addAttribute("name", sub_result.get_name());
+        }
         doc.start("testcase");
         add_problems(doc, "failure", sub_result.failures());
         add_problems(doc, "error", sub_result.errors());