Andrew Johnson
3313860691
Win32 osdThread.c polishing
...
A little optimization of Freddie's code
Rename the new non-public routine
2021-09-16 14:45:25 -05:00
Andrew Johnson
2b8eb97b79
Merge Freddie's refactor_get_param_win32 branch
2021-09-16 13:28:42 -05:00
Andrew Johnson
e7ea81c7a2
Reference doc tweaks to the dfanout record
2021-09-14 18:26:32 -05:00
Freddie Akeroyd
00e9ecf7b5
Fix typo in osdThreadGetTimer
2021-09-11 22:19:40 +01:00
Freddie Akeroyd
65b34874bd
Check for NULL in osdThreadGetTimer
2021-09-11 22:17:09 +01:00
Freddie Akeroyd
939d84f31a
Refactor to use common epicsThreadGetParamWIN32() function
2021-09-11 22:10:10 +01:00
Freddie Akeroyd
e8c5748f89
Use <osiSock.h> rather than <osdSock.h>
2021-06-25 11:37:07 +01:00
Freddie Akeroyd
d1ddbad053
Fix issue with very large timeout passed to epicsEventWaitWithTimeout()
...
A very large timeout was getting converted to a 0 wait and causing
some unit tests to fail in strange and random ways. Not trapping
large timeouts was an oversight when converting to waitable timers
on WIN32
2021-05-19 08:46:11 -07:00
Andrew Johnson
b55c019f10
Merged Freddie's waitable_timers branch into 3.15
2021-05-05 17:55:00 -05:00
Andrew Johnson
2eb5af3167
Return dbPutSpecial(paddr, 1) status from dbPut()
...
The status from RSET::special(paddr, 1) has not been returned
to the put caller since 3.14, due to a bad up-merge.
2021-05-04 11:18:54 -05:00
Andrew Johnson
0c4ab7b24a
Merge my 'make-inc-fix' branch into 3.15
2021-03-11 20:45:37 -06:00
Andrew Johnson
d831c2b384
Merge 'FreddieAkeroyd-use_epicsStrtod' into 3.15
2021-03-11 20:18:57 -06:00
Freddie Akeroyd
3c7fb7990f
Use <epicsStdlib.h>
2021-03-11 15:08:00 +00:00
Andrew Johnson
c359b49aed
Fix the 3.15 'make inc' build target
...
Now generates and installs dbd, header and html files.
No compilation involved/required.
2021-03-10 22:05:39 -06:00
Freddie Akeroyd
c140a0a804
Add additional cleanup and error handling
2021-03-10 21:58:35 +00:00
Gabriel Fedel
0bc2a3e999
Fix variable type and cast on msi.cpp
...
This way the attribution of i to cmdind is a valid value.
2021-03-10 14:37:14 +01:00
Freddie Akeroyd
8e7702c8a5
Use epicsStrtod, remove some warnings
2021-03-10 11:29:45 +00:00
Freddie Akeroyd
5f94ab6d9f
Tidy up
2021-03-10 10:47:24 +00:00
Gabriel Fedel
6ac10d43b1
Fix type comparision on msi.cpp
...
This change fix the comparision of different signedess (int and long
unsigned int).
2021-03-10 09:45:01 +01:00
Freddie Akeroyd
c6af4a245d
Use waitable timers
2021-03-10 01:17:47 +00:00
Jack Harper
30172226f9
whoops, MSVC 1900 not 1800
2021-03-09 13:13:16 +00:00
Jack Harper
2ea0994507
tests passing
2021-03-09 13:04:57 +00:00
Andrew Johnson
a8036d7f34
posix/osdThread: Use "Once" versions properly
...
Functions used before epicsThreadInit() returns must call the
checkStatusOnceQuit() version to avoid recursion from errlogInit()
2020-12-23 11:53:05 -06:00
Andrew Johnson
c60056d4d6
Reconfigure and tidy up the testFailure stuff
...
Many variables renamed.
Generated files are now named .log for .gitignore
Actions are now defined in CONFIG_BASE variables.
2020-12-18 15:32:46 -06:00
Andrew Johnson
68c056f2f8
Fix makeTestfile.pl to report test failures properly
...
If a test program reports test failures, the Perl wrapper
must return the same error status. On Windows where we use
system() instead of exec() that needs some value fiddling.
2020-12-18 10:20:31 -06:00
Andrew Johnson
7beb32e209
Extend testFailures.pl to list the failed test programs
...
Creates a file .taps-failed in each O.<arch> directory,
appending the name of each tapfile that has failures to it.
The testFailures script now reads the .taps-failed files
from each directory listed in .tests-failed and nicely
displays the failing tests listed in each.
2020-12-17 18:34:24 -06:00
Andrew Johnson
a365de2419
Fix return value of epicsUnitTest::testDone()
...
Wasn't properly returning a non-zero exit status
when HARNESS_ACTIVE was set.
2020-12-17 18:21:07 -06:00
Ralph Lange
2035fc641a
PCAS: fix scope of tsDLList when used in other classes
...
Use ::tsDLList to avoid resolving to privately inherited
name (which was breaking builds on newer clang compilers)
2020-12-07 10:07:23 +01:00
Andrew Johnson
7632c355ee
dbpr: Catch buffer overflow from long link strings.
...
Fixes lp: #1776141
Currently this just truncates when we hit the end of the buffer,
a better solution is warranted.
2020-11-16 14:25:51 -05:00
Andrew Johnson
4730e14cc7
Document the PINI, POST and PRIO menus
2020-11-13 18:17:47 -06:00
Martin Konrad
228ad79b7a
Simplify addToList() function
2020-10-13 18:38:17 -04:00
Martin Konrad
bbc0a56d2b
Fix wrong PHAS order
...
Records with lower PHAS value than any previously loaded records
were inserted at the end of the list rather than at the beginning.
This fixes lp: #1899697 . Also fixes a proto-bug in that the second
argument to the previously used ellAdd() call assumed that
offsetof(scan_element, node)==0.
Thanks to Bruno Martins for providing this patch.
2020-10-13 18:34:39 -04:00
Ralph Lange
0fbfc74182
Fix missing deletion in 97b29129 from 'fix/misc'
...
- fixes 97b29129 that was replacing two assert() statements
without removing the original (offending) lines
2020-06-23 11:23:57 +02:00
Ralph Lange
92374b2be2
libcom/osi: fix potential leak in vxWorks/osdThread.c
...
(found by sonar/cppcheck)
2020-06-10 14:26:40 +02:00
Ralph Lange
579fc9d0c7
libcom/osi: fix potential leak in default/osdThreadHooks.c
...
(found by sonar/cppcheck)
2020-06-10 14:26:40 +02:00
Ralph Lange
cd47bbf99b
libcom/osi: fix debug printf() in default/osdNetIntf.c
...
(found by sonar/cppcheck)
2020-06-10 14:26:40 +02:00
Ralph Lange
d3d40689c8
libcom/osi: fix dangerous usage of strncat (WIN32)
...
(found by sonar/cppcheck)
2020-06-10 14:26:40 +02:00
Ralph Lange
d5eb055bb7
libcom/flex: fix sscanf() argument types
...
(code smell found by sonar/cppcheck)
2020-06-10 14:26:40 +02:00
Ralph Lange
97b29129af
libcom/test: don't modify operand in assert() statement
...
(code smell found by sonar/cppcheck)
2020-06-10 14:26:40 +02:00
Ralph Lange
801710b8c7
db: fix possible null pointer dereference
...
(found by sonar/cppcheck)
2020-06-10 14:26:40 +02:00
Ralph Lange
30f5c3b301
db: fix incomplete initialization in dbChannelOpen()
...
(found by sonar/cppcheck)
2020-06-10 14:26:40 +02:00
Ralph Lange
69d4c238e7
ca/tools: free() all allocated buffers
...
(found by sonar/cppcheck)
2020-06-09 15:52:14 +02:00
Ralph Lange
7d1ff1411f
ca/tools: fix type errors in option parsing
...
(found by sonar/cppcheck)
2020-06-09 15:51:35 +02:00
Ralph Lange
f0e143b907
ca/client: fix possible null pointer dereference
...
(found by sonar/cppcheck)
2020-06-09 15:48:33 +02:00
Andrew Johnson
732f8b19be
Merge branch 'defaultMessageQueue' into 3.15
2020-05-14 10:41:52 -05:00
Andrew Johnson
b03e2f376b
eMQTest: Start each test with a new (empty) queue
...
If fastReceiver() took more than 0.01 seconds to exit,
sleepySender() might have pushed a second message onto
the queue after setting recvExit, so there would be an
extra message in the queue for the next test, which I
was seeing on Appveyor. That's my current theory...
2020-05-13 16:11:31 -05:00
Andrew Johnson
59c68807b6
Heinz Junkes' fix for lp: #1812084 Build failure on RTEMS
...
I reduced some of the code duplication from his original.
2020-05-13 15:26:34 -05:00
Andrew Johnson
2e7ed02a60
Allow/expect MinGW to fail epicsStackTraceTest #5
2020-05-07 13:13:26 -05:00
Andrew Johnson
089954aaab
MessageQueue Tests: Extend Mark's sleep tests
2020-05-07 13:12:12 -05:00
Andrew Johnson
34e0b2f305
osdMessageQueue: Undo change to -ve timeout handling
...
The internal mySend() and myReceive() routines do expect a timeout
of -1 to mean wait forever, see the epicsMessageQueueSend() and
epicsMessageQueueReceive() API routines.
2020-05-04 11:56:14 -05:00