From a6a01e68225bf7f41cfc9db26c5daf889327b833 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Tue, 17 Aug 2010 17:53:43 -0500 Subject: [PATCH] Converted buckTest.c to use epicsTime.h instead of time.h This should finally resolve the build conflict between RTEMS-uc5282 and Windows, and remove the build warning on vxWorks. --- src/libCom/test/buckTest.c | 126 ++++++++++++++++++------------------- 1 file changed, 61 insertions(+), 65 deletions(-) diff --git a/src/libCom/test/buckTest.c b/src/libCom/test/buckTest.c index 3134fec6a..6fc34954e 100644 --- a/src/libCom/test/buckTest.c +++ b/src/libCom/test/buckTest.c @@ -7,9 +7,9 @@ * in file LICENSE that is included with this distribution. \*************************************************************************/ -#include #include +#include "epicsTime.h" #include "epicsAssert.h" #include "bucketLib.h" #include "testMain.h" @@ -19,68 +19,64 @@ MAIN(buckTest) { - unsigned id1; - unsigned id2; - char *pValSave1; - char *pValSave2; - int s; - BUCKET *pb; - char *pVal; - unsigned i; - clock_t start, finish; - double duration; - const int LOOPS = 500000; - - pb = bucketCreate(8); - if(!pb){ - return -1; - } - - id1 = 0x1000a432; - pValSave1 = "fred"; - s = bucketAddItemUnsignedId(pb, &id1, pValSave1); - verify (s == S_bucket_success); - - pValSave2 = "jane"; - id2 = 0x0000a432; - s = bucketAddItemUnsignedId(pb, &id2, pValSave2); - verify (s == S_bucket_success); - - start = clock(); - for(i=0; i