Lines Matching refs:test
44 PRInt32 rv, oldval, test, result = 0;
47 oldval = test = -2;
48 rv = PR_AtomicIncrement(&test);
53 oldval = test;
54 rv = PR_AtomicIncrement(&test);
59 oldval = test;
60 rv = PR_AtomicIncrement(&test);
66 oldval = test = -2;
67 rv = PR_AtomicAdd(&test,1);
72 oldval = test;
73 rv = PR_AtomicAdd(&test, 4);
78 oldval = test;
79 rv = PR_AtomicAdd(&test, -6);
85 oldval = test = 2;
86 rv = PR_AtomicDecrement(&test);
91 oldval = test;
92 rv = PR_AtomicDecrement(&test);
97 oldval = test;
98 rv = PR_AtomicDecrement(&test);
105 oldval = test = -2;
106 rv = PR_AtomicSet(&test, 2);
107 result = result | (((rv == -2) && (test == 2)) ? 0 : 1);
110 oldval, 2, rv, ((rv == -2) && (test == 2)) ? "PASSED" : "FAILED");
113 oldval = test = -2;
114 rv = PR_AtomicSet(&test, -2);
115 result = result | (((rv == -2) && (test == -2)) ? 0 : 1);
118 oldval, -2, rv, ((rv == -2) && (test == -2)) ? "PASSED" : "FAILED");
121 output, "Atomic operations test %s\n",