Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Michael gave permission to use his test code
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 18, 2011
1 parent f4be0f4 commit 4edd0db
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions test/testatomic.c
Expand Up @@ -68,9 +68,13 @@ void RunBasicTest()
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
* to see if they are really atomic.
Expand Down Expand Up @@ -224,6 +228,9 @@ void RunEpicTest()
SDL_assert(bad!=Expect);
}

/* End atomic operation test */
/**************************************************************************/

int
main(int argc, char *argv[])
{
Expand Down

0 comments on commit 4edd0db

Please sign in to comment.