Mercurial > sdl-ios-xcode
changeset 5018:342b158efbbe
Michael gave permission to use his test code
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 18 Jan 2011 10:57:28 -0800 |
parents | a9a3b9852a4a |
children | 64a2d8f538a1 |
files | test/testatomic.c |
diffstat | 1 files changed, 10 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/test/testatomic.c Mon Jan 17 14:08:00 2011 -0800 +++ b/test/testatomic.c Tue Jan 18 10:57:28 2011 -0800 @@ -68,9 +68,13 @@ 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. @@ -224,6 +228,9 @@ SDL_assert(bad!=Expect); } +/* End atomic operation test */ +/**************************************************************************/ + int main(int argc, char *argv[]) {