X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2Frmwprog.c;h=ebace1ec262966d5d367afefd5dbaaddef168a26;hb=c3240e7376fc80855529257647bd010a2cce7d6f;hp=57ab54462bab9b03b48a87cf86578d06c8c5e070;hpb=92db01802459e4913d32683c27e8b5cea2d9c2b2;p=cdsspec-compiler.git diff --git a/test/rmwprog.c b/test/rmwprog.c index 57ab544..ebace1e 100644 --- a/test/rmwprog.c +++ b/test/rmwprog.c @@ -4,6 +4,7 @@ #include #include "librace.h" +#include "model-assert.h" atomic_int x; static int N = 2; @@ -29,5 +30,7 @@ int user_main(int argc, char **argv) thrd_join(t1); thrd_join(t2); + MODEL_ASSERT(atomic_load(&x) == N * 2); + return 0; }