Lines Matching refs:g_assert
20 g_assert (atomic == 10); in main()
22 g_assert (!g_atomic_int_dec_and_test (&atomic)); in main()
23 g_assert (g_atomic_int_dec_and_test (&atomic)); in main()
24 g_assert (atomic == 0); in main()
26 g_assert (g_atomic_int_exchange_and_add (&atomic, 5) == 0); in main()
27 g_assert (atomic == 5); in main()
29 g_assert (g_atomic_int_exchange_and_add (&atomic, -10) == 5); in main()
30 g_assert (atomic == -5); in main()
33 g_assert (atomic == 15); in main()
36 g_assert (atomic == -20); in main()
38 g_assert (atomic == g_atomic_int_get (&atomic)); in main()
40 g_assert (g_atomic_int_compare_and_exchange (&atomic, -20, 20)); in main()
41 g_assert (atomic == 20); in main()
43 g_assert (!g_atomic_int_compare_and_exchange (&atomic, 42, 12)); in main()
44 g_assert (atomic == 20); in main()
46 g_assert (g_atomic_int_compare_and_exchange (&atomic, 20, G_MAXINT)); in main()
47 g_assert (atomic == G_MAXINT); in main()
49 g_assert (g_atomic_int_compare_and_exchange (&atomic, G_MAXINT, G_MININT)); in main()
50 g_assert (atomic == G_MININT); in main()
52 g_assert (g_atomic_pointer_compare_and_exchange (&atomic_pointer, in main()
54 g_assert (atomic_pointer == biggest_pointer); in main()
56 g_assert (atomic_pointer == g_atomic_pointer_get (&atomic_pointer)); in main()
58 g_assert (g_atomic_pointer_compare_and_exchange (&atomic_pointer, in main()
60 g_assert (atomic_pointer == NULL); in main()