From 17ed2092eb0c5fa49c3d1f15eab2db77e1b69478 Mon Sep 17 00:00:00 2001
From: Roberto Aloi <roberto.aloi@klarna.com>
Date: Thu, 29 Aug 2013 17:14:22 +0200
Subject: Do not attempt to detect lists of printable characters in Data

This is to avoid outputting something like "\"%\f" instead of [34,37,12] in the XML.
---
 lib/eunit/src/eunit_surefire.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/eunit/src/eunit_surefire.erl b/lib/eunit/src/eunit_surefire.erl
index cc021625d5..a2463d32e8 100644
--- a/lib/eunit/src/eunit_surefire.erl
+++ b/lib/eunit/src/eunit_surefire.erl
@@ -174,7 +174,7 @@ handle_cancel(group, Data, St) ->
                        setup_failed -> "fixture setup ";
                        cleanup_failed -> "fixture cleanup "
                    end
-                ++ io_lib:format("~p", [proplists:get_value(id, Data)]),
+                ++ io_lib:format("~w", [proplists:get_value(id, Data)]),
             Desc = format_desc(proplists:get_value(desc, Data)),
             TestCase = #testcase{
               name = Name, description = Desc,
-- 
cgit v1.2.3