Commit Graph

8 Commits

Author SHA1 Message Date
Claude
df7d99bb76 fix(test): remove two undefined reads
- PluginServices.Control: the condition variable predicate could read
  nextState before the callback wrote it; initialize it
- MemoryResources.allocator: &*v.end() dereferences the end iterator;
  compute the end address from v.data() + v.size()

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 17:00:01 +01:00
Claude
e59a410951 fix(test): check the values of the state and transition conversions
- the conversion tests only checked that no exception was thrown, so a
  wrong mapping passed
- check each name and value in both directions, include the states
  and transitions that the tests missed (UNDEFINED, INITIALIZED, BOUND,
  AUTO, BIND, CONNECT), and check that an unknown name throws

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 17:00:01 +01:00
Dennis Klein
19e607e486 test: fix racy loop-variable capture in SubscriptionThreadSafety
- the subscriber threads captured the loop counter by reference while
  the spawning loop kept incrementing it: a genuine data race
- depending on timing, threads could also end up with duplicate
  subscriber names; capture the counter by value instead
2026-06-10 19:31:19 +02:00
Dennis Klein
961eca5276 test(PluginServices): state change subscription thread-safety 2023-11-10 13:13:13 +01:00
Dennis Klein
008be36125 PluginServices: Do not throw if device control cannot be released 2019-07-29 09:22:02 +02:00
Alexey Rybalchenko
fc94342db8 Update state machine
- Split INITIALIZING state into Init+Bind+Connect
 - Remove PAUSE state
 - Convert state/transitions to enum classes (CamelCase)
 - Transition to a state only once previous handler is complete
 - Add CompleteInit transition to notify Initializing state
   that config updates are complete
 - Deprecate WaitForEndOfState(transition) in favor of
   WaitForState(state)/WaitForNextState()
 - Update tests/plugins to new APIs
 - Deprecate CheckCurrentState() in favor of NewStatePending()
2019-02-25 12:19:50 +01:00
Alexey Rybalchenko
ef3eb5f83e Simplify structure in DeviceRunner and plugin classes 2018-08-08 16:13:41 +02:00
Dennis Klein
2327fd2115 Move test directory one up 2018-04-12 17:46:18 +02:00