Break osiTimeTest into two parts like the other tests.
Build IOC version of osiTimeTest.
This commit is contained in:
@@ -23,8 +23,9 @@ OBJS_IOC += threadTest
|
||||
#fdmgrTest_SRCS += fdmgrTest.c
|
||||
#PROD += fdmgrTest
|
||||
|
||||
osiTimeTest_SRCS += osiTimeTest.cc
|
||||
PROD += osiTimeTest
|
||||
osiTimeTestHost_SRCS += osiTimeTestMain.c osiTimeTest.cc
|
||||
PROD += osiTimeTestHost
|
||||
OBJS_IOC += osiTimeTest
|
||||
|
||||
SYS_PROD_LIBS_solaris += pthread thread posix4
|
||||
|
||||
|
||||
@@ -6,8 +6,11 @@
|
||||
#include "osiThread.h"
|
||||
#include "epicsAssert.h"
|
||||
|
||||
extern "C" {
|
||||
int osiTimeTest (void);
|
||||
}
|
||||
|
||||
int main ()
|
||||
int osiTimeTest (void)
|
||||
{
|
||||
unsigned i;
|
||||
osiTime begin = osiTime::getCurrent();
|
||||
|
||||
8
src/libCom/test/osiTimeTestMain.c
Normal file
8
src/libCom/test/osiTimeTestMain.c
Normal file
@@ -0,0 +1,8 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int osiTimeTest (void);
|
||||
|
||||
int main (int argc, char **argv)
|
||||
{
|
||||
return osiTimeTest ();
|
||||
}
|
||||
Reference in New Issue
Block a user