From 826bc847e6601f834a3ece8c001a8dd2bfa2fe97 Mon Sep 17 00:00:00 2001 From: Rohan McGovern Date: Wed, 6 May 2009 10:46:35 +1000 Subject: Fixed invalid XML from testlib: `addAttribute(QTest::AI_Result, typeBuf); - failureElement->addAttribute(QTest::AI_File, file); + if(file) + failureElement->addAttribute(QTest::AI_File, file); + else + failureElement->addAttribute(QTest::AI_File, ""); QTest::qt_snprintf(buf, sizeof(buf), "%i", line); failureElement->addAttribute(QTest::AI_Line, buf); failureElement->addAttribute(QTest::AI_Description, description); -- cgit v0.12