|
From: <sv...@va...> - 2009-05-17 21:45:09
|
Author: sewardj Date: 2009-05-17 22:45:01 +0100 (Sun, 17 May 2009) New Revision: 9872 Log: Add a simple XML output test, using tc06_two_races. Added: branches/MESSAGING_TIDYUP/helgrind/tests/tc06_two_races_xml.stderr.exp branches/MESSAGING_TIDYUP/helgrind/tests/tc06_two_races_xml.stdout.exp branches/MESSAGING_TIDYUP/helgrind/tests/tc06_two_races_xml.vgtest Modified: branches/MESSAGING_TIDYUP/helgrind/tests/Makefile.am Modified: branches/MESSAGING_TIDYUP/helgrind/tests/Makefile.am =================================================================== --- branches/MESSAGING_TIDYUP/helgrind/tests/Makefile.am 2009-05-17 21:02:36 UTC (rev 9871) +++ branches/MESSAGING_TIDYUP/helgrind/tests/Makefile.am 2009-05-17 21:45:01 UTC (rev 9872) @@ -30,6 +30,8 @@ tc05_simple_race.stderr.exp \ tc06_two_races.vgtest tc06_two_races.stdout.exp \ tc06_two_races.stderr.exp \ + tc06_two_races_xml.vgtest tc06_two_races_xml.stdout.exp \ + tc06_two_races_xml.stderr.exp \ tc07_hbl1.vgtest tc07_hbl1.stdout.exp tc07_hbl1.stderr.exp \ tc08_hbl2.vgtest tc08_hbl2.stdout.exp tc08_hbl2.stderr.exp \ tc09_bad_unlock.vgtest tc09_bad_unlock.stdout.exp \ Added: branches/MESSAGING_TIDYUP/helgrind/tests/tc06_two_races_xml.stderr.exp =================================================================== --- branches/MESSAGING_TIDYUP/helgrind/tests/tc06_two_races_xml.stderr.exp (rev 0) +++ branches/MESSAGING_TIDYUP/helgrind/tests/tc06_two_races_xml.stderr.exp 2009-05-17 21:45:01 UTC (rev 9872) @@ -0,0 +1,318 @@ +<?xml version="1.0"?> + +<valgrindoutput> + +<protocolversion>4</protocolversion> +<protocoltool>helgrind</protocoltool> + +<preamble> + <line>...</line> + <line>...</line> + <line>...</line> + <line>...</line> + <line>...</line> + <line>...</line> +</preamble> + +<pid>...</pid> +<ppid>...</ppid> +<tool>helgrind</tool> + +<args> + <vargv>...</vargv> + <argv> + <exe>./tc06_two_races</exe> + </argv> +</args> + +<status> + <state>RUNNING</state> + <time>...</time> +</status> + +<announcethread> + <hthreadid>1</threadid> + <isrootthread></isrootthread> +</announcethread> + +<announcethread> + <hthreadid>2</threadid> + <stack> + <frame> + <ip>0x........</ip> + <obj>...</obj> + <fn>clone</fn> + </frame> + <frame> + <ip>0x........</ip> + <obj>...</obj> + <fn>do_clone</fn> + </frame> + <frame> + <ip>0x........</ip> + <obj>...</obj> + <fn>pthread_create@@GLIBC_2.2.5</fn> + </frame> + <frame> + <ip>0x........</ip> + <obj>...</obj> + <fn>pthread_create@*</fn> + <dir>...</dir> + <file>hg_intercepts.c</file> + <line>...</line> + </frame> + <frame> + <ip>0x........</ip> + <obj>...</obj> + <fn>main</fn> + <dir>...</dir> + <file>tc06_two_races.c</file> + <line>...</line> + </frame> + </stack> +</announcethread> + +<error> + <unique>0x........</unique> + <tid>...</tid> + <kind>Race</kind> + <xwhat> + <text>Possible data race during read of size 4 at 0x........ by thread #x</text> + <hthreadid>1</hthreadid> + </xwhat> + <stack> + <frame> + <ip>0x........</ip> + <obj>...</obj> + <fn>main</fn> + <dir>...</dir> + <file>tc06_two_races.c</file> + <line>...</line> + </frame> + </stack> + <xauxwhat> + <text>This conflicts with a previous write of size 4 by thread #x</text> + <hthreadid>2</hthreadid> + </xauxwhat> + <stack> + <frame> + <ip>0x........</ip> + <obj>...</obj> + <fn>child_fn</fn> + <dir>...</dir> + <file>tc06_two_races.c</file> + <line>...</line> + </frame> + <frame> + <ip>0x........</ip> + <obj>...</obj> + <fn>mythread_wrapper</fn> + <dir>...</dir> + <file>hg_intercepts.c</file> + <line>...</line> + </frame> + <frame> + <ip>0x........</ip> + <obj>...</obj> + <fn>start_thread</fn> + </frame> + <frame> + <ip>0x........</ip> + <obj>...</obj> + <fn>clone</fn> + </frame> + </stack> + <auxwhat>Location 0x........ is 0 bytes inside global var "unprot1"</auxwhat> + <xauxwhat><text>declared at tc06_two_races.c:9</text> <file>tc06_two_races.c</file> <line>...</line> </xauxwhat> +</error> + +<error> + <unique>0x........</unique> + <tid>...</tid> + <kind>Race</kind> + <xwhat> + <text>Possible data race during write of size 4 at 0x........ by thread #x</text> + <hthreadid>1</hthreadid> + </xwhat> + <stack> + <frame> + <ip>0x........</ip> + <obj>...</obj> + <fn>main</fn> + <dir>...</dir> + <file>tc06_two_races.c</file> + <line>...</line> + </frame> + </stack> + <xauxwhat> + <text>This conflicts with a previous write of size 4 by thread #x</text> + <hthreadid>2</hthreadid> + </xauxwhat> + <stack> + <frame> + <ip>0x........</ip> + <obj>...</obj> + <fn>child_fn</fn> + <dir>...</dir> + <file>tc06_two_races.c</file> + <line>...</line> + </frame> + <frame> + <ip>0x........</ip> + <obj>...</obj> + <fn>mythread_wrapper</fn> + <dir>...</dir> + <file>hg_intercepts.c</file> + <line>...</line> + </frame> + <frame> + <ip>0x........</ip> + <obj>...</obj> + <fn>start_thread</fn> + </frame> + <frame> + <ip>0x........</ip> + <obj>...</obj> + <fn>clone</fn> + </frame> + </stack> + <auxwhat>Location 0x........ is 0 bytes inside global var "unprot1"</auxwhat> + <xauxwhat><text>declared at tc06_two_races.c:9</text> <file>tc06_two_races.c</file> <line>...</line> </xauxwhat> +</error> + +<error> + <unique>0x........</unique> + <tid>...</tid> + <kind>Race</kind> + <xwhat> + <text>Possible data race during read of size 4 at 0x........ by thread #x</text> + <hthreadid>1</hthreadid> + </xwhat> + <stack> + <frame> + <ip>0x........</ip> + <obj>...</obj> + <fn>main</fn> + <dir>...</dir> + <file>tc06_two_races.c</file> + <line>...</line> + </frame> + </stack> + <xauxwhat> + <text>This conflicts with a previous write of size 4 by thread #x</text> + <hthreadid>2</hthreadid> + </xauxwhat> + <stack> + <frame> + <ip>0x........</ip> + <obj>...</obj> + <fn>child_fn</fn> + <dir>...</dir> + <file>tc06_two_races.c</file> + <line>...</line> + </frame> + <frame> + <ip>0x........</ip> + <obj>...</obj> + <fn>mythread_wrapper</fn> + <dir>...</dir> + <file>hg_intercepts.c</file> + <line>...</line> + </frame> + <frame> + <ip>0x........</ip> + <obj>...</obj> + <fn>start_thread</fn> + </frame> + <frame> + <ip>0x........</ip> + <obj>...</obj> + <fn>clone</fn> + </frame> + </stack> + <auxwhat>Location 0x........ is 0 bytes inside global var "unprot2"</auxwhat> + <xauxwhat><text>declared at tc06_two_races.c:9</text> <file>tc06_two_races.c</file> <line>...</line> </xauxwhat> +</error> + +<error> + <unique>0x........</unique> + <tid>...</tid> + <kind>Race</kind> + <xwhat> + <text>Possible data race during write of size 4 at 0x........ by thread #x</text> + <hthreadid>1</hthreadid> + </xwhat> + <stack> + <frame> + <ip>0x........</ip> + <obj>...</obj> + <fn>main</fn> + <dir>...</dir> + <file>tc06_two_races.c</file> + <line>...</line> + </frame> + </stack> + <xauxwhat> + <text>This conflicts with a previous write of size 4 by thread #x</text> + <hthreadid>2</hthreadid> + </xauxwhat> + <stack> + <frame> + <ip>0x........</ip> + <obj>...</obj> + <fn>child_fn</fn> + <dir>...</dir> + <file>tc06_two_races.c</file> + <line>...</line> + </frame> + <frame> + <ip>0x........</ip> + <obj>...</obj> + <fn>mythread_wrapper</fn> + <dir>...</dir> + <file>hg_intercepts.c</file> + <line>...</line> + </frame> + <frame> + <ip>0x........</ip> + <obj>...</obj> + <fn>start_thread</fn> + </frame> + <frame> + <ip>0x........</ip> + <obj>...</obj> + <fn>clone</fn> + </frame> + </stack> + <auxwhat>Location 0x........ is 0 bytes inside global var "unprot2"</auxwhat> + <xauxwhat><text>declared at tc06_two_races.c:9</text> <file>tc06_two_races.c</file> <line>...</line> </xauxwhat> +</error> + +<status> + <state>FINISHED</state> + <time>...</time> +</status> + +<errorcounts> + <pair> + <count>...</count> + <unique>0x........</unique> + </pair> + <pair> + <count>...</count> + <unique>0x........</unique> + </pair> + <pair> + <count>...</count> + <unique>0x........</unique> + </pair> + <pair> + <count>...</count> + <unique>0x........</unique> + </pair> +</errorcounts> + +<suppcounts>...</suppcounts> + +</valgrindoutput> + Added: branches/MESSAGING_TIDYUP/helgrind/tests/tc06_two_races_xml.stdout.exp =================================================================== Added: branches/MESSAGING_TIDYUP/helgrind/tests/tc06_two_races_xml.vgtest =================================================================== --- branches/MESSAGING_TIDYUP/helgrind/tests/tc06_two_races_xml.vgtest (rev 0) +++ branches/MESSAGING_TIDYUP/helgrind/tests/tc06_two_races_xml.vgtest 2009-05-17 21:45:01 UTC (rev 9872) @@ -0,0 +1,3 @@ +prog: tc06_two_races +vgopts: --read-var-info=yes --xml=yes --xml-fd=2 --log-file=/dev/null +stderr_filter: ../../memcheck/tests/filter_xml |