From 72b1dd30a00d2f68d621bc2568ed60c48fe70cde Mon Sep 17 00:00:00 2001 From: PacketVideo CM Date: Mon, 8 Mar 2010 21:49:29 -0800 Subject: [PATCH] RIO-8792: Print null testnames as undefined in xml logfile --- engines/2way/src/pv_2way_sdkinfo.h | 2 +- engines/author/src/pv_author_sdkinfo.h | 2 +- engines/player/src/pv_player_sdkinfo.h | 2 +- oscl/unit_test/src/xml_test_interpreter.cpp | 11 +++++++++-- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/engines/2way/src/pv_2way_sdkinfo.h b/engines/2way/src/pv_2way_sdkinfo.h index 1a5ed663..a5e64c5a 100644 --- a/engines/2way/src/pv_2way_sdkinfo.h +++ b/engines/2way/src/pv_2way_sdkinfo.h @@ -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 diff --git a/engines/author/src/pv_author_sdkinfo.h b/engines/author/src/pv_author_sdkinfo.h index 90d7e173..40c828bd 100644 --- a/engines/author/src/pv_author_sdkinfo.h +++ b/engines/author/src/pv_author_sdkinfo.h @@ -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 diff --git a/engines/player/src/pv_player_sdkinfo.h b/engines/player/src/pv_player_sdkinfo.h index d2f1c7ba..1faedfb0 100644 --- a/engines/player/src/pv_player_sdkinfo.h +++ b/engines/player/src/pv_player_sdkinfo.h @@ -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 diff --git a/oscl/unit_test/src/xml_test_interpreter.cpp b/oscl/unit_test/src/xml_test_interpreter.cpp index 589987f8..e1ba4a13 100644 --- a/oscl/unit_test/src/xml_test_interpreter.cpp +++ b/oscl/unit_test/src/xml_test_interpreter.cpp @@ -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()); -- 2.11.0