source: rtems/testsuites/smptests/smpatomic08/smpatomic08.scn @ 4238aff

4.11
Last change on this file since 4238aff was 4238aff, checked in by WeiY <wei.a.yang@…>, on Sep 1, 2013 at 10:28:35 AM

add atomic sub, and, or, compare_exchange test cases into smpatomic08

  • Property mode set to 100644
File size: 831 bytes
Line 
1*** TEST SMPATOMIC 8 ***
2=== atomic add test case ==
3atomic add worker 0 counter: 18583
4atomic add worker 1 counter: 36324
5global counter: expected = 54907, actual = 54907
6=== atomic flag test case ===
7atomic flag worker 0 counter: 7388
8atomic flag worker 1 counter: 17280
9global flag counter: expected = 24668, actual = 24668
10=== atomic sub test case ==
11atomic sub worker 0 counter: 18583
12atomic sub worker 1 counter: 36324
13global counter: expected = 54907, actual = 54907
14=== atomic compare_exchange test case ==
15atomic compare_exchange worker 0 counter: 3467
16atomic compare_exchange worker 1 counter: 19635
17global counter: expected = 23102, actual = 23102
18=== atomic or_and test case ==
19atomic or_and worker 0 counter: 1
20atomic or_and worker 1 counter: 1
21global counter: expected = 3, actual = 3
22*** END OF TEST SMPATOMIC 8 ***
Note: See TracBrowser for help on using the repository browser.