2012-04-08 72 views
0

我從使用命令行運行常用的測試:二郎命令測試失敗寫「coverlog」

$ run_test -pa ../ebin -spec test.spec.all 

,並得到了以下錯誤。爲什麼io:format()調用會得到badarg錯誤?

Testing testdir2.bds1.ep_SUITE: Starting test, 3 test cases 


ERROR: Could not write normal heading in coverlog. 
CoverLog: <0.318.0> 
Reason: {badarg,[{io,format, 
        [<0.318.0>, 
         "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<!-- autogenerated by '~w'. -->\n<html>\n<head><title>Coverage results</title></head>\n<body bgcolor=\"white\" text=\"black\" link=\"blue\" vlink=\"purple\" alink=\"red\">", 
         [test_server_ctrl]], 
        []}, 
       {test_server_ctrl,write_coverlog_header,1, 
            [{file,"test_server_ctrl.erl"}, 
            {line,5731}]}, 
       {test_server_ctrl,write_default_coverlog,1, 
            [{file,"test_server_ctrl.erl"}, 
            {line,5803}]}, 
       {test_server_ctrl,stop_extra_tools,1, 
            [{file,"test_server_ctrl.erl"}, 
            {line,1464}]}, 
       {test_server_ctrl,init_tester,9, 
            [{file,"test_server_ctrl.erl"}, 
            {line,1403}]}]} 
Suite testdir2.bds1.ep_SUITE was killed with reason {terminated, 
                 [{io,format, 
                 [<0.318.0>, 
                  "<html><body>\n",[]], 
                 []}, 
                 {test_server_ctrl, 
                 write_default_coverlog, 
                 1, 
                 [{file, 
                  "test_server_ctrl.erl"}, 
                  {line,5803}]}, 
                 {test_server_ctrl, 
                 stop_extra_tools,1, 
                 [{file, 
                  "test_server_ctrl.erl"}, 
                  {line,1464}]}, 
                 {test_server_ctrl, 
                 init_tester,9, 
                 [{file, 
                  "test_server_ctrl.erl"}, 
                  {line,1403}]}]} 
+0

你確定過程'<0.318.0>'還活着嗎?要發送的格式信息在哪裏?手動使用這些參數手動執行'io:format'調用,'<0.318.0>'除外,都可以使用。 – rvirding 2013-05-21 18:43:07

回答

0

你確定你有類似〜s的格式模式嗎?

你能提供一些實際上有這個io格式的代碼嗎?