Commit Graph
232 Commits
Author SHA1 Message Date
Sang-Woo Kim 8d044c558a dbNotify: honour processRequest in processNotifyCommon (#988)
* dbNotify: honour processRequest in processNotifyCommon

dbNotify.h:132-137 documents that a process request is issued when the
requester asked for one and the record is passive, but 056304409 added
that rule and the enumerator while testing only processGetRequest, so
processRequest has always yielded no put, no process, and notifyOK.
2026-10-14 15:45:58 +02:00
Michael Davidsaver 85a5bc61e4 dbCaLinkTest: test dbr_size_n 2026-10-14 15:13:14 +02:00
Sang Woo Kim ee673d87ec seqRecord: fix upper display limit of the DLYn fields
get_graphic_double() assigns lower_disp_limit twice and never writes
upper_disp_limit, so a DBR_GR_DOUBLE read of any DLYn field reports
the inverted range lower=10, upper=0.  The second assignment was
evidently meant for the upper limit; the 0 in the upper slot is the
zeroed buffer dbAccess.c hands to the RSET, not a chosen value.

Both assignments date from commit 27e80be2e5 which introduced the
DLYn limits, so every release since 3.14.11 reports the inverted
range over both CA (DBR_GR/CTRL) and PVA (display.limitLow/High).

Extend seqTest with a DBR_GR_DOUBLE read of DLY0; the new cases
fail with lower=10, upper=0 before this fix.
2026-10-14 11:18:58 +02:00
Sang Woo Kim 2ec624aad6 selRecord: fix the precision reported for the A-L and LA-LL fields
get_precision() walks pvalue and plvalue over the A-L and LA-LL fields,
then compares paddr->pfield against &pvalue and &plvalue -- the
addresses of the two local pointer variables, not of the fields they
point at.  Those are stack addresses, so neither test has ever matched
and every A-L or LA-LL precision request falls through to
recGblGetPrec().  The line just above gets it right: prec->val is a
field and needs the &, whereas pvalue and plvalue are already pointers.

Both tests date from e87551df24, the commit that added the loop, and
have been dead ever since, so every release since R3.12 has this.  They
carried a (void *) cast until 6d85a36397 removed it, which is why the
compiler was never shown a double ** to complain about.  That the
fields were meant to be covered is not in doubt: this record's
get_graphic_double() and get_control_double() both name A-L and LA-LL.

This changes what those fields report.  recGblGetPrec() substitutes 15
for a DOUBLE precision outside 0 to 15, so today A-L and LA-LL answer
15 for a PREC of 17 while VAL answers 17.  They now answer PREC
unclamped, which is what VAL has always done.

Add selTest, reading the precision of VAL, A, L, LA, LL and HIHI from a
record with PREC=17.  The four A-L and LA-LL cases report 15 before
this fix; VAL and HIHI pin the two paths either side of them.
2026-10-14 11:18:16 +02:00
zimoch 15ba5ed863 Merge branch '7.0' into PSI-7.0 2026-09-28 09:39:12 +02:00
Michael Davidsaver 717d69e1fc dbCa: iocInit wait for local CA links to connect 2026-02-27 13:01:27 +00:00
zimoch db693d4930 enable trim_trailing_whitespace 2026-02-18 10:34:08 -06:00
zimoch 3d95dece6b Merge 7.0.10 into PSI-7.0 2026-01-06 14:57:16 +01:00
zimoch 6d85a36397 remove needless pointer casts 2025-12-17 16:34:58 -08:00
zimoch 90a727c901 Fix spelling errors
Most errors found with:

codespell -L cach,thst,odly,aslo,parm,parms,inpu,ges,prset,pevent,ptd,pring,valu,noo,noe,ned,inout,ro,siz,froms,nd,fo,singl,sart,multy,tthe,allong,ment,inate,nodel,tring,alse,ture,thi,wille,numer

Some more manually found (its -> it's)

c++20: Do not use apostrophe (e.g. can't) in unquoted #error message
2025-12-01 19:00:04 -08:00
Michael Davidsaver 3f382f6b68 Revert "dbCa: iocInit wait for local CA links to connect"
This reverts commit a46bd5ae88.
2025-10-17 14:51:46 -07:00
Michael Davidsaver a46bd5ae88 dbCa: iocInit wait for local CA links to connect 2025-10-14 19:45:15 -07:00
Evan Daykin acd1aef2a0 Warn to stderr when discarding CPP modifier for outlink (#608)
* warn to stderr when un-setting inapplicable CPP flag on output links

* Warn and unset CP flag for output links

* use errlogprintf instead of fprintf for dbParseLink CP/CPP warning

* Pass source record name to dbParseLink for debug information when modifier is discarded

* make CP/CPP discard warning less verbose

* Include field name of affected record when warning of CP/CPP discard
2025-10-08 09:44:27 -05:00
Simon Rose 187801c2e6 Fix MSI tests when INSTALL_LOCATION is set 2025-08-27 09:40:24 -05:00
zimoch c3c492d2cd test IVOA in dfanout 2025-08-13 10:02:58 -05:00
zimoch bff913e4d1 test new dfanout outputs 2025-08-13 10:02:58 -05:00
zimoch 4c40b9f4bb make dfanoutTest processing synchronous 2025-08-13 10:02:58 -05:00
MarcoMontevechi ff1fb82ef2 Add dfanout test (#660)
Add dfanout record unit tests

Authored-by: marcofilho <marco.filho@ess.eu>
2025-07-30 10:12:58 -05:00
zimoch 0f29b34f68 Merge branch '7.0' into PSI-7.0 2025-07-14 10:49:20 +02:00
Simon Rose 43afae523e Remove dbltExpand test
This is an older manual test to compare dbLoadTemplate to compare to
msi's output. However, it does not link properly with dbCore due to
the rewriting of dbLoadRecords, so it is being removed.
2025-06-20 15:45:44 -05:00
Simon Rose b34465add6 Add support for EPICS_DB_INCLUDE_PATH
This allows dbLoadTemplate to search through either a custom-provided
list of paths, or through paths provided by the environment variable
EPICS_DB_INCLUDE_PATH.
2025-06-20 15:45:44 -05:00
Simon Rose 72936844ae Silence some error log messages during test runs 2025-05-16 11:39:34 -07:00
Andrew Johnson e13d65f6f5 Remove more uses of DEVSUPFUN that C23 doesn't like 2025-04-17 12:29:05 -05:00
Andrew Johnson eb1263795e Use new DSET and arg's 2025-04-17 11:55:30 -05:00
zimoch 09f96d056a Merge branch '7.0' into PSI-7.0 2025-03-21 15:15:57 +01:00
zimoch acf4c92697 fix epicsExport for volatile and const variables 2025-03-21 13:49:04 +01:00
zimoch c75ad2673e no longer need extern "C" { } around epicsExport macros 2025-03-19 11:17:14 -05:00
Andrew Johnson 350570134e Changed dbServerStats() to count the server layers called 2025-03-19 11:03:46 -05:00
Andrew Johnson 72f3e75c8d Add summary stat's calculation 2025-03-19 11:03:46 -05:00
Andrew Johnson fd86f0ff04 Unit tests for dbServerStats() 2025-03-19 11:03:46 -05:00
Michael Davidsaver 9f788996dc db: lock record for db_create_read_log() and dbChannelGetField()
since 27fe3e4468 db_create_read_log()
accesses record fields.

remove now redundant db_create_read_log() calls.
2025-03-19 10:51:08 -05:00
zimoch ee1a49045a support CROSS_COMPILER_RUNTESTS_ARCHS other than RTEMS 2025-03-05 10:00:44 -06:00
zimoch ddc49e9f79 Merge remote-tracking branch 'github/epicsExportAddress' into PSI-7.0 2025-03-04 17:55:15 +01:00
zimoch 12144fe267 Merge remote-tracking branch 'github/RuntestArchs' into PSI-7.0 2025-03-04 17:49:04 +01:00
zimoch c5315d95b8 no longer need extern "C" { } around epicsExport macros 2025-03-04 17:45:04 +01:00
zimoch 55791ef470 Merge branch 7.0.9 into PSI-7.0 2025-03-03 17:19:23 +01:00
zimoch 312a602952 support CROSS_COMPILER_RUNTESTS_ARCHS other than RTEMS 2025-03-03 14:11:45 +01:00
zimoch 72026a27a0 allow to load the same alias multiple times (unless dbRecordsOnceOnly is set) 2024-12-29 16:35:25 -08:00
Simon Rose 9fb820b46e Add tests for relative include paths 2024-12-29 16:34:10 -08:00
zimoch b53505d339 Merge branch '7.0' into PSI-7.0 2024-12-05 16:58:15 +01:00
615ba73044 Rules to generate and install Markdown
Markdown can be generated from .pod and .dbd.pod files.
Markdown will be generated and installed by "make inc".

Co-authored-by: Timo Korhonen <timo.korhonen@ess.eu>
Co-authored-by: Andrew Johnson <anj@anl.gov>
2024-10-02 09:16:29 -05:00
zimoch d67036fcc0 Merge branch 'aliases' into PSI-7.0 2024-08-26 16:37:57 +02:00
zimoch d494d91ba2 allow to load the same alias multiple times (unless dbRecordsOnceOnly is set) 2024-08-26 16:30:20 +02:00
Michael Davidsaver 052a0c7e19 test get_enum_strs() 2024-08-21 10:01:26 -05:00
Hinko Kocevar f00de26be1 directory path name is free'd before it is used in testAbort() 2024-08-21 09:48:23 -05:00
Michael Davidsaver 2a5def7fc6 test removal of non-existant record 2024-08-21 09:48:23 -05:00
Hinko Kocevar c735de4ff8 fix number of tests to execute 2024-08-21 09:48:23 -05:00
Hinko Kocevar bb5423171d remove warning and error messages, fix duplicate flag setting 2024-08-21 09:48:23 -05:00
Hinko Kocevar 2f98251c9f add unit tests for record deletion 2024-08-21 09:48:23 -05:00
zimoch 03f17a08c3 Merge branch '7.0' into PSI-7.0 2024-08-07 17:30:04 +02:00