From a9e4d020cbd6e9c6086eee74544dea7ec189a8fe Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 16 Mar 2021 11:56:14 +0100 Subject: [PATCH] shared/tests: add nmtst_rand_select_str() helper --- src/libnm-glib-aux/nm-test-utils.h | 2 ++ 1 file changed, 2 insertions(+) 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) {