Andrew Johnson
b32127c5de
libCom: Fix epicsTime::strftime() roll-over bug
...
Fractional seconds could round-up to .000 without
incrementing the integer seconds.
We can't actually do the latter, so we prevent the
roll-over and clamp at all 9's instead.
Idea from Eric Norum.
2014-01-29 16:52:22 -06:00
Andrew Johnson
863e8fdd3b
libCom: Fix VxWorks localtime_r() and gmtime_r() wrappers
...
Wind River changed the return value between VxWorks 6.8 and 6.9.
2013-06-07 14:35:45 -05:00
Andrew Johnson
10e7bced84
libCom/test: epicsTimeTest reworked a bit
...
Report throw from first call to epicsTime::getCurrent().
Reorganized test order so a bad time provider doesn't stop
all tests from being run. Also cleaned up a few extraneous
variables.
2012-03-06 12:54:54 -06:00
Jeff Hill
d8f7c3731d
fixed various archaic sun pro build failures repoted by Dirk
2011-12-12 16:10:24 -07:00
Andrew Johnson
643db2e417
Make sure the EPICS epoch is 1990-01-01T00:00:00 UTC
2007-05-07 20:50:38 +00:00
Andrew Johnson
a710bff122
Fixed testPlan, added test for %% in strtfime format strings.
2007-01-02 19:30:04 +00:00
Jeff Hill
e0b4715c98
fixed mantis 279 - epicsTimeToStrftime problem with %06f format
2006-12-22 18:57:53 +00:00
Andrew Johnson
f50c49131c
Make it <cstddef> so it builds everywhere else.
2006-12-11 17:51:48 +00:00
Janet B. Anderson
55986a1e92
Fix for Borland build.
2006-12-11 17:46:23 +00:00
Andrew Johnson
6c19051727
Major reorganization:
...
Removed all Main.cpp files, use the macro in testMain.h instead and
defaulted all argc/argv parameters.
Converted all real test programs to use epicsUnitTest.h.
Moved performance measurements from epicsThreadTest to epicsThreadPerform.
Moved epicsOkToBlockTest tests into epicsThreadTest.
On a host arch, make test inside the O.arch directory runs all tests.
2006-11-09 22:38:41 +00:00
Andrew Johnson
c2755088e6
Cleanup.
2006-10-26 17:47:47 +00:00
Andrew Johnson
4d67f3596a
Converted some of the test routines to use the new epicsUnitTest facility.
2006-03-30 20:13:25 +00:00
Jeff Hill
f4068d6a49
upgraded tests for mantis 245
2006-03-21 00:59:25 +00:00
Ralph Lange
da3cd3bc19
Also restored old wasteTime value
2004-10-22 10:45:03 +00:00
Jeff Hill
372a3dc989
restored "waste time" loop
2004-10-07 19:21:18 +00:00
Jeff Hill
a868270c68
fixed gnu warning
2004-09-24 15:27:10 +00:00
Jeff Hill
c26cd7fdce
architecture independent manipulation of NTP stamps
2003-10-28 18:56:56 +00:00
Jeff Hill
d668a2d8d2
print test complete message
2003-04-23 21:55:28 +00:00
Jeff Hill
648557b72c
added authors
2003-02-12 19:03:00 +00:00
Jeff Hill
f6c13478ab
test epicsTime::show()
2002-12-19 01:24:20 +00:00
Jeff Hill
0fce80a352
added constants
2002-10-23 22:28:08 +00:00
Jeff Hill
308055d41e
NTP timestamp test
2002-09-11 20:48:24 +00:00
Jeff Hill
25acc515c4
perform FILETIME conversions only on windows because
...
monolithic win32 header files are incompatible with other
things in EPICS and we cant include windows.h in osdTime.h
2002-09-07 00:11:06 +00:00
Jeff Hill
b3104bbc2b
added win32 filetime test
2002-09-04 20:30:08 +00:00
Janet B. Anderson
93b0bf478d
Updated license comments.
2002-07-12 21:35:43 +00:00
Jeff Hill
071a7dee1f
improved test
2001-12-14 00:55:06 +00:00
Jeff Hill
dbf7b13e9f
added some strftime tests
2001-08-10 00:46:15 +00:00
Jeff Hill
4886ad2b6d
fixed to use const for begin and end
2001-06-12 17:48:36 +00:00
Jeff Hill
77a90ccc57
made diff computations const
2001-06-11 18:16:08 +00:00
Jeff Hill
24b1da7fff
made diff computations identical
2001-06-11 18:15:14 +00:00
Jeff Hill
b6479bbc80
added parens
2001-06-06 18:51:05 +00:00
Marty Kraimer
6a52eff141
osiTime=>epicsTime
2001-01-31 13:34:02 +00:00