X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Ftests%2Finterlocked.cs;h=43daf75d2f68ea294f147bc545c8d68fe63ffec1;hb=320f9c2ae29427537e83dcb63e4028febb7f9511;hp=c9717878f7b577bfa22b724f73b8af7f50dfca23;hpb=c4a3b30460c7ea1a1fb3c97cfc8478555714af2f;p=mono.git diff --git a/mono/tests/interlocked.cs b/mono/tests/interlocked.cs index c9717878f7b..43daf75d2f6 100644 --- a/mono/tests/interlocked.cs +++ b/mono/tests/interlocked.cs @@ -17,32 +17,32 @@ public class InterlockTest it.test = 0; int c = Interlocked.Exchange (ref it.test, 1); if (c != 0) - return -1; + return 1; if (it.test != 1) - return -2; + return 2; a = 1; b = Interlocked.Increment (ref a); if (a != 2) - return -3; + return 3; if (b != 2) - return -4; + return 4; a = 2; b = Interlocked.Decrement (ref a); if (b != 1) - return -3; + return 3; if (a != 1) - return -4; + return 4; string s = IncTest (); if (s != "A1") - return -5; + return 5; s = IncTest (); if (s != "A2") - return -6; + return 6; Thread.MemoryBarrier ();