NetworkManager/shared/nm-utils
Thomas Haller e8a5cee1a1
platform/tests: better handling "timeout_msec" argument in nmtst_main_context_iterate_until()
nmtst_main_context_iterate_until() is a macro, and we don't want to restrict the
valid integer type (or range) of the "timeout_msec" argument.

In particular, if the user calculates a timeout with "timestamp_msec -
now_msec", the resulting "timeout_msec" might be a negative gint64.
We should handle that gracefully, and not let it be cast to a huge
unsigned int.

(cherry picked from commit 6cb6888404)
(cherry picked from commit 4d572bea7e)
(cherry picked from commit 95b74a3bde)
(cherry picked from commit 500c63db3c)
2021-06-10 16:59:16 +02:00
..
tests tests: replace NMTST_SWAP() by new NM_SWAP() macro 2020-03-26 22:22:57 +01:00
nm-compat.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nm-compat.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nm-test-utils.h platform/tests: better handling "timeout_msec" argument in nmtst_main_context_iterate_until() 2021-06-10 16:59:16 +02:00
nm-vpn-editor-plugin-call.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-vpn-plugin-macros.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nm-vpn-plugin-utils.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nm-vpn-plugin-utils.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00