Michael gave permission to use his test code
This commit is contained in:
parent
0928bae0cd
commit
42a3df6fd3
1 changed files with 10 additions and 3 deletions
|
@ -68,8 +68,12 @@ void RunBasicTest()
|
||||||
printf("AtomicCAS() tfret=%s val=%d\n", tf(tfret), SDL_AtomicGet(&v));
|
printf("AtomicCAS() tfret=%s val=%d\n", tf(tfret), SDL_AtomicGet(&v));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Atomic operation test, adapted from code by Michael Davidsaver at:
|
/**************************************************************************/
|
||||||
http://bazaar.launchpad.net/~mdavidsaver/epics-base/atomic/revision/12105#src/libCom/test/epicsAtomicTest.c
|
/* Atomic operation test
|
||||||
|
* Adapted with permission from code by Michael Davidsaver at:
|
||||||
|
* http://bazaar.launchpad.net/~mdavidsaver/epics-base/atomic/revision/12105#src/libCom/test/epicsAtomicTest.c
|
||||||
|
* Original copyright 2010 Brookhaven Science Associates as operator of Brookhaven National Lab
|
||||||
|
* http://www.aps.anl.gov/epics/license/open.php
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Tests semantics of atomic operations. Also a stress test
|
/* Tests semantics of atomic operations. Also a stress test
|
||||||
|
@ -224,6 +228,9 @@ void RunEpicTest()
|
||||||
SDL_assert(bad!=Expect);
|
SDL_assert(bad!=Expect);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* End atomic operation test */
|
||||||
|
/**************************************************************************/
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue