diff options
author | Thomas Haller <thaller@redhat.com> | 2021-03-16 11:56:14 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2021-03-16 11:56:29 +0100 |
commit | a9e4d020cbd6e9c6086eee74544dea7ec189a8fe (patch) | |
tree | 7093a2ca745e1393b64583ecd391b806f21a6025 | |
parent | b377a7d0c9f142a87f6b2a7766032de77b6e55d3 (diff) | |
download | NetworkManager-a9e4d020cbd6e9c6086eee74544dea7ec189a8fe.tar.gz |
shared/tests: add nmtst_rand_select_str() helper
-rw-r--r-- | src/libnm-glib-aux/nm-test-utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libnm-glib-aux/nm-test-utils.h b/src/libnm-glib-aux/nm-test-utils.h index 410a55821a..61e4ef63db 100644 --- a/src/libnm-glib-aux/nm-test-utils.h +++ b/src/libnm-glib-aux/nm-test-utils.h @@ -977,6 +977,8 @@ nmtst_rand_buf(GRand *rand, gpointer buffer, gsize buffer_length) #define nmtst_rand_select(...) _nmtst_rand_select(NM_UNIQ, __VA_ARGS__) +#define nmtst_rand_select_str(x, ...) nmtst_rand_select((const char *) (x), ##__VA_ARGS__) + static inline void * nmtst_rand_perm(GRand *rand, void *dst, const void *src, gsize elmt_size, gsize n_elmt) { |