4.115
Last change
on this file since 4238aff was
4238aff,
checked in by WeiY <wei.a.yang@…>, on 09/01/13 at 10:28:35
|
add atomic sub, and, or, compare_exchange test cases into smpatomic08
|
-
Property mode set to
100644
|
File size:
831 bytes
|
Rev | Line | |
---|
[79d03e3] | 1 | *** TEST SMPATOMIC 8 *** |
---|
| 2 | === atomic add test case == |
---|
[e127c4c] | 3 | atomic add worker 0 counter: 18583 |
---|
| 4 | atomic add worker 1 counter: 36324 |
---|
| 5 | global counter: expected = 54907, actual = 54907 |
---|
| 6 | === atomic flag test case === |
---|
| 7 | atomic flag worker 0 counter: 7388 |
---|
| 8 | atomic flag worker 1 counter: 17280 |
---|
| 9 | global flag counter: expected = 24668, actual = 24668 |
---|
[4238aff] | 10 | === atomic sub test case == |
---|
| 11 | atomic sub worker 0 counter: 18583 |
---|
| 12 | atomic sub worker 1 counter: 36324 |
---|
| 13 | global counter: expected = 54907, actual = 54907 |
---|
| 14 | === atomic compare_exchange test case == |
---|
| 15 | atomic compare_exchange worker 0 counter: 3467 |
---|
| 16 | atomic compare_exchange worker 1 counter: 19635 |
---|
| 17 | global counter: expected = 23102, actual = 23102 |
---|
| 18 | === atomic or_and test case == |
---|
| 19 | atomic or_and worker 0 counter: 1 |
---|
| 20 | atomic or_and worker 1 counter: 1 |
---|
| 21 | global counter: expected = 3, actual = 3 |
---|
[79d03e3] | 22 | *** END OF TEST SMPATOMIC 8 *** |
---|
Note: See
TracBrowser
for help on using the repository browser.