diff options
Diffstat (limited to 'tests/async/tupcoming_async.nim')
-rw-r--r-- | tests/async/tupcoming_async.nim | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/async/tupcoming_async.nim b/tests/async/tupcoming_async.nim index 0fe9f08a5..e3170620e 100644 --- a/tests/async/tupcoming_async.nim +++ b/tests/async/tupcoming_async.nim @@ -61,6 +61,17 @@ when defined(upcoming): discard e.close() + proc eventTest5331() = + # Event must not raise any exceptions while was unregistered inside of + # own callback. + # Issue #5331. + let e = newAsyncEvent() + addEvent(e) do (fd: AsyncFD) -> bool: + e.unregister() + e.close() + e.setEvent() + poll() + when ioselSupportedPlatform or defined(windows): import osproc @@ -124,6 +135,7 @@ when defined(upcoming): eventTest() eventTest5304() eventTest5298() + eventTest5331() processTest() signalTest() echo "OK" @@ -132,12 +144,14 @@ when defined(upcoming): eventTest() eventTest5304() eventTest5298() + eventTest5331() processTest() echo "OK" else: eventTest() eventTest5304() eventTest5298() + eventTest5331() echo "OK" else: echo "OK" |