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
Andrew Johnson
1e8d49f2a6
Drop debugging diagnostics
2024-08-07 09:54:16 -05:00
Andrew Johnson
31b22fd253
Add test of jlinkz::putValue() to dbPutLinkTest
...
Add OUTP link field to xRecord
xRecord::process() puts VAL to the OUTP link
jlinkz writes the output value to the record's own PHAS field
Correct the dbFastPutConvertRoutine lookup
Test sets OUTP link, processes record and confirms that PHAS was set
2024-08-07 09:54:16 -05:00
Andrew Johnson
916b17ef3f
Fix review comment
2024-08-07 09:54:16 -05:00
Andrew Johnson
437320926b
Move declaration back
2024-08-07 09:54:16 -05:00
Andrew Johnson
7890e67d37
Various misc warnings
2024-08-07 09:54:16 -05:00
Andrew Johnson
f287cfa2ac
Introduce & use FASTCONVERTFUNC with full prototype
2024-08-07 09:54:16 -05:00
Simon Rose
beec00b403
Fix issue with compress record
...
The handling of N-to-M array compression was broken with the addition
of the partial buffer option, which broke the bounds check that was
being used.
Note that this also makes the partial buffer option more consistent;
if, for example, you have
```
record(compress, foo) {
field(ALG, "N to 1 Average")
field(INP, "bar NPP")
field(NSAM, 2)
field(N, 2)
field(PBUF, YES)
}
```
(with `bar` having, e.g. length 3), then this will now behave as
expected on both of the samples.
2024-05-29 09:15:35 -05:00
Michael Davidsaver
3d25756065
privatize evSubscrip
2023-09-21 08:18:49 -07:00
Karl Vestin
39b6fa26da
Added unit test for binary output record type
2023-07-22 08:32:16 -07:00
Emilio Perez
500a57738b
Validate target record name when creating an alias
...
This fixes issue #312 by printing an error when a field is specified
2023-07-22 08:29:09 -07:00
Jure Varlec
e11f88017d
ts filter: port to the new db_field_log
2023-04-18 09:51:07 -05:00
Jure Varlec
bd1af9ac95
ts filter: fix unused variable warnings
2023-04-18 09:51:07 -05:00
Jure Varlec
c042b08ab0
Extend timestamp filter, giving access to the record timestamp
2023-04-18 09:51:07 -05:00
Michael Davidsaver
d3f93746a8
1<<31 upsets ubsan
2023-03-10 10:57:35 +00:00
Brendan Chandler
832abbd3b1
Return an error if subrecord processing fails due to bad INP links
...
If a sub record has an invalid INPx link, it was silently failing (and
not running the proc function). This change plumbs in the error, so
the put fails and the user knows something went wrong.
2023-03-10 10:56:58 +00:00
Simon Rose
84d9617375
Added one more put/process to go over the buffer length
...
Note that it is not really a circular buffer in this case, but
a full reset of the buffer to the beginning. This matches the
documentation, but it seems valuable to add an explicit test for
this case.
2023-03-10 09:51:08 +00:00
Simon Rose
d66e90a016
Fixing 'error C2057: expected constant expression' error
2023-03-10 09:51:08 +00:00
Simon Rose
373e5440ac
General cleanup
2023-03-10 09:51:08 +00:00
Simon Rose
dec23501e1
Added test for array_average
2023-03-10 09:51:08 +00:00
Simon Rose
11a4bed9aa
compress_scalar for average works correctly now
2023-03-10 09:51:08 +00:00
Simon Rose
bf4a4c6b78
Added failing test for partial ai average
2023-03-10 09:51:08 +00:00
Simon Rose
b54d4b9a24
Added test for low value
2023-03-10 09:51:08 +00:00
Simon Rose
84f4771691
Single input data test passes
2023-03-10 09:51:08 +00:00
Simon Rose
1dc34a02e2
Add test path for single input data
2023-03-10 09:51:08 +00:00
Simon Rose
3ab22818da
Added failing test for partially filled buffer average
2023-03-10 09:51:08 +00:00
Simon Rose
1ab474638d
Initial test for averaging
2023-03-10 09:51:08 +00:00
Andrew Johnson
e63184e518
Merge PR #63 , longout.OOPT
2022-12-29 16:31:42 -06:00
Andrew Johnson
cbd86ada20
regRecDevDrv.pl: Don't break long symbol names in DBD files
...
Makes a test symbol name long enough to trigger the problem.
Fixes lp: #1995728
2022-11-04 11:09:06 -05:00
c2df1c6fe5
string waveform init test added
2022-09-02 08:33:32 -07:00
Michael Davidsaver
d47fa4caa4
fix aSub with constant input links
2022-09-02 08:09:51 -07:00
Michael Davidsaver
424d678abf
linkTest_registerRecordDeviceDriver() fix return type
2022-07-29 07:45:23 -07:00
Michael Davidsaver
9048aa3438
db: move db_field_log dtor out of union
2022-07-28 13:10:59 -07:00
Andrew Johnson
5f02bad3fc
Fix decimate filter for testing on VxWorks
...
Also adds checks to all filter tests to abort if they
can't continue because their filter wasn't registered.
2022-07-08 15:55:14 -05:00
Ralph Lange
4fc549234c
Merge branch '7.0' into add-simm-to-ao-records
2022-05-11 10:47:12 -07:00
Ralph Lange
60001c0571
Add SIMM=RAW for mbboDirect record
2022-05-10 16:33:28 -07:00
Ralph Lange
37b95bc242
Add SIMM=RAW for mbbo record
2022-05-10 16:33:28 -07:00
Ralph Lange
4e9bb9fe50
Add SIMM=RAW to bo record
2022-05-10 16:33:27 -07:00
Michael Davidsaver
62092d4399
test dbReadDatabaseFP()
2022-03-03 13:16:53 -08:00
Andrew Johnson
db216e63a7
Merge Dirk's hex_in_hw_links branch into 7.0
2022-01-24 12:57:53 -06:00
Michael Davidsaver
7529577e3b
Silence warning in mbbioDirectTest
...
GCC seems to lose track of possible output lengths
of the first sprintf() when computing possible lengths
of the second.
../mbbioDirectTest.c:44:26: warning: ‘.B’ directive writing 2 bytes into a region of size between 1 and 40 [-Wformat-overflow=]
44 | sprintf(field,"%s.B%X", rec, i);
2021-11-13 11:47:15 -08:00
71efed8c1b
extend link test to hex numbers
2021-11-10 10:15:56 +01:00
Michael Davidsaver
78684e0e57
asyncSoftTest fix sync
2021-11-08 07:58:15 -08:00
Michael Davidsaver
ba5ade1852
softTest fix sync
2021-11-05 08:31:17 -07:00
Michael Davidsaver
ce910f52c3
drop usage of dbCaGetUpdateCount()
2021-11-02 11:31:26 -07:00
Michael Davidsaver
219ab33625
fix regressTest
2021-11-02 11:31:24 -07:00