X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2Frmwprog.c;h=ebace1ec262966d5d367afefd5dbaaddef168a26;hb=82f6d9ab97a87e874fb1b5dfa237266f4bfc95d1;hp=57ab54462bab9b03b48a87cf86578d06c8c5e070;hpb=92db01802459e4913d32683c27e8b5cea2d9c2b2;p=c11tester.git diff --git a/test/rmwprog.c b/test/rmwprog.c index 57ab5446..ebace1ec 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; }