Kaynağa Gözat

Removed invalid assert in testatomic

Sam Lantinga 2 yıl önce
ebeveyn
işleme
8adab0b88a
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      test/testatomic.c

+ 2 - 1
test/testatomic.c

@@ -232,7 +232,8 @@ static void RunEpicTest(void)
     v = SDL_AtomicGet(&good);
     v = SDL_AtomicGet(&good);
     SDL_Log("Atomic %d Non-Atomic %d\n", v, bad);
     SDL_Log("Atomic %d Non-Atomic %d\n", v, bad);
     SDL_assert(v == Expect);
     SDL_assert(v == Expect);
-    SDL_assert(bad != Expect);
+    /* We can't guarantee that bad != Expect, this would happen on a single core system, for example. */
+    /*SDL_assert(bad != Expect);*/
 }
 }
 
 
 /* End atomic operation test */
 /* End atomic operation test */