Author: bart
Date: 2008-03-07 17:34:22 +0000 (Fri, 07 Mar 2008)
New Revision: 7582

Log:
Added more atomic read/modify/write tests.

Added:
   trunk/exp-drd/tests/tc07_hbl1.vgtest
   trunk/exp-drd/tests/tc08_hbl2.vgtest
Modified:
   trunk/exp-drd/tests/Makefile.am
   trunk/exp-drd/tests/tc07_hbl1.stderr.exp
   trunk/exp-drd/tests/tc08_hbl2.stderr.exp


Modified: trunk/exp-drd/tests/Makefile.am
===================================================================
--- trunk/exp-drd/tests/Makefile.am     2008-03-07 17:22:26 UTC (rev 7581)
+++ trunk/exp-drd/tests/Makefile.am     2008-03-07 17:34:22 UTC (rev 7582)
@@ -116,6 +116,11 @@
        tc06_two_races.stderr.exp                   \
        tc06_two_races.stderr.exp-linuxthreads      \
        tc06_two_races.vgtest                       \
+       tc07_hbl1.stderr.exp                        \
+       tc07_hbl1.stdout.exp                        \
+       tc07_hbl1.vgtest                            \
+       tc08_hbl2.stderr.exp                        \
+       tc08_hbl2.vgtest                            \
        tc09_bad_unlock.stderr.exp                  \
        tc09_bad_unlock.stderr.exp-linuxthreads     \
        tc09_bad_unlock.vgtest                      \
@@ -169,12 +174,6 @@
        trylock.c trylock.stderr.exp                \
        trylock.stderr.exp-linuxthreads
 
-#      tc07_hbl1.vgtest
-#      tc07_hbl1.stderr.exp tc07_hbl1.stdout.exp
-#      tc07_hbl1.stderr.exp
-#      tc08_hbl2.vgtest
-#      tc08_hbl2.stderr.exp
-
 AM_CFLAGS   = $(WERROR) -Winline -Wall -Wshadow -g $(AM_FLAG_M3264_PRI)
 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include -I$(top_builddir)/include
 AM_CXXFLAGS = $(AM_CFLAGS)
@@ -203,6 +202,8 @@
   tc04_free_lock      \
   tc05_simple_race    \
   tc06_two_races      \
+  tc07_hbl1           \
+  tc08_hbl2           \
   tc09_bad_unlock     \
   tc10_rec_lock       \
   tc11_XCHG           \
@@ -220,8 +221,6 @@
   tc24_nonzero_sem    \
   trylock
 
-#  tc07_hbl1 -- requires bus locking support.
-#  tc08_hbl2 -- requires bus locking support.
 #  tc14_laog_dinphils  -- hangs.
 
 
@@ -294,11 +293,11 @@
 tc06_two_races_SOURCES      = ../../helgrind/tests/tc06_two_races.c
 tc06_two_races_LDADD        = -lpthread
 
-# tc07_hbl1_SOURCES           = ../../helgrind/tests/tc07_hbl1.c
-# tc07_hbl1_LDADD             = -lpthread
+tc07_hbl1_SOURCES           = ../../helgrind/tests/tc07_hbl1.c
+tc07_hbl1_LDADD             = -lpthread
 
-# tc08_hbl2_SOURCES           = ../../helgrind/tests/tc08_hbl2.c
-# tc08_hbl2_LDADD             = -lpthread
+tc08_hbl2_SOURCES           = ../../helgrind/tests/tc08_hbl2.c
+tc08_hbl2_LDADD             = -lpthread
 
 tc09_bad_unlock_SOURCES     = ../../helgrind/tests/tc09_bad_unlock.c
 tc09_bad_unlock_LDADD       = -lpthread

Modified: trunk/exp-drd/tests/tc07_hbl1.stderr.exp
===================================================================
--- trunk/exp-drd/tests/tc07_hbl1.stderr.exp    2008-03-07 17:22:26 UTC (rev 
7581)
+++ trunk/exp-drd/tests/tc07_hbl1.stderr.exp    2008-03-07 17:34:22 UTC (rev 
7582)
@@ -1,18 +1,3 @@
 
-Conflicting load by thread 1 at 0x........ size 4
-   at 0x........: main (tc07_hbl1.c:68)
-Allocation context: x (offset 0, size 4) in tc07_hbl1, NONE:BSS
-Other segment start (thread 2)
-   (thread finished, call stack no longer available)
-Other segment end (thread 2)
-   (thread finished, call stack no longer available)
 
-Conflicting store by thread 1 at 0x........ size 4
-   at 0x........: main (tc07_hbl1.c:68)
-Allocation context: x (offset 0, size 4) in tc07_hbl1, NONE:BSS
-Other segment start (thread 2)
-   (thread finished, call stack no longer available)
-Other segment end (thread 2)
-   (thread finished, call stack no longer available)
-
-ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
+ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

Added: trunk/exp-drd/tests/tc07_hbl1.vgtest
===================================================================
--- trunk/exp-drd/tests/tc07_hbl1.vgtest                                (rev 0)
+++ trunk/exp-drd/tests/tc07_hbl1.vgtest        2008-03-07 17:34:22 UTC (rev 
7582)
@@ -0,0 +1 @@
+prog: tc07_hbl1

Modified: trunk/exp-drd/tests/tc08_hbl2.stderr.exp
===================================================================
--- trunk/exp-drd/tests/tc08_hbl2.stderr.exp    2008-03-07 17:22:26 UTC (rev 
7581)
+++ trunk/exp-drd/tests/tc08_hbl2.stderr.exp    2008-03-07 17:34:22 UTC (rev 
7582)
@@ -1 +1,3 @@
-ERROR SUMMARY: 16 errors from 16 contexts
+
+
+ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

Added: trunk/exp-drd/tests/tc08_hbl2.vgtest
===================================================================
--- trunk/exp-drd/tests/tc08_hbl2.vgtest                                (rev 0)
+++ trunk/exp-drd/tests/tc08_hbl2.vgtest        2008-03-07 17:34:22 UTC (rev 
7582)
@@ -0,0 +1 @@
+prog: tc08_hbl2


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Valgrind-developers mailing list
Valgrind-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-developers

Reply via email to