26 Commits

Author SHA1 Message Date
Julius Pfrommer 97f724ea19 test(mt): synchronize threaded fixtures and simulated clock
Use atomic shutdown flags and clock updates in threaded tests. Guard the auditing fixture when
thread-safe server support is disabled.
2026-09-21 16:23:09 +02:00
Julius Pfrommer b3fb44ff5b refactor(tests): Remove last usage of realSleep 2025-11-05 09:03:43 +01:00
Julius Pfrommer 3bec159cb9 Merge remote-tracking branch 'origin/1.4' into merge_14_master_25 2025-01-25 19:06:56 +01:00
Noel Graf 34d957c561 fix(server): Consistency in the use of the Windows architecture flag 2025-01-09 15:00:38 +01:00
Julius Pfrommer 054420cf33 refactor(test): Use the fake clock also for non-monotonic time-source
The subscription tests depend on a deterministic clock.
2023-12-26 00:30:17 +01:00
Julius Pfrommer 58099d814c refactor(plugin): Move the EventLoop to the plugins folder 2023-12-10 11:38:53 +01:00
Julius Pfrommer dd300f3eff refactor(tests): Set a custom "fake" clock in the EventLoop for unit tests 2023-10-04 10:56:26 +02:00
Julius Pfrommer d70f80d1e1 refactor(test): Remove unused UA_comboSleep 2022-07-25 23:37:06 +02:00
Julius Pfrommer 58e591b16e fix(test): Remove a sign conversion error in testing_clock.c 2022-07-21 12:45:26 +02:00
Alexander Bluhm 3706b2705f test(core): fix 32 bit sign-conversion compiler errors
When compiled with clang on 32 bit platforms, -Wsign-conversion
prevents implicit conversion from UA_UInt32 to long.  Make sec and
ns UA_Int32 which is compatible with time_t and long in struct
timespec.
2022-06-13 20:17:54 +02:00
Julius Pfrommer 7d1d21a88c refactor(core): Simplify the malloc singleton option 2020-07-01 10:21:17 +02:00
Julius Pfrommer c6b6ed85b2 fix(build): Fix an undefined function warning for fuzzing 2019-10-30 14:07:57 +01:00
Jayanth Velusamy 53deb3585f [FIX] Add non-zero timestamp for unit tests (client)
Signed-off-by: Jayanth Velusamy <jayanth.v@kalycito.com>
2019-03-20 09:55:59 +01:00
Stefan Profanter a37c959ece Architecture: Allow overriding memory allocation functions 2018-11-16 09:44:03 +01:00
Stefan Profanter 0c3423036d Only define UA_sleep_ms if not yet defined (align with master) 2018-04-16 13:13:08 +02:00
Stefan Profanter a0d6e2b166 Further adaption to architecture folder
# Conflicts:
#	plugins/ua_log_socket_error.h
2018-04-16 13:13:00 +02:00
Stefan Profanter dd9696dede Support OPC Foundation LDS server
Since client encryption landed into master, this was an open todo for
a long time. The multicast server example was updated to use the encryption
client.

Fixes #938
2018-03-28 23:41:09 +02:00
Julius Pfrommer e74b4bf832 simplify datetime handling. 2017-12-12 22:09:55 +01:00
StalderT 12be0ad68c add timezone to the logs 2017-12-12 22:09:55 +01:00
StalderT 3e51e870bf win32 change gmtime to gmtime_s 2017-12-12 22:09:55 +01:00
StalderT 26b3165821 fix localtime in logger 2017-12-12 22:09:55 +01:00
Jose Cabral 6c82b082c8 Fix missing code for VxWorks 2017-12-01 16:13:19 +01:00
Stefan Profanter eb26a1e34b Untabify 2017-11-22 15:57:03 +01:00
Stefan Profanter 3619afb6bd Add unit test for windows 2017-11-22 15:56:50 +01:00
Julius Pfrommer 6278950c4b simplify client securechannel test (#1385)
* simplify client securechannel test

* rename sleeping on simulated testing clock to UA_fakeSleep

* let the server start before calling with the client
2017-11-21 12:52:23 +01:00
Mark 1b6c0554cb Move tests into subdirectories for better organization 2017-11-08 10:29:23 +01:00