libnm/tests: fix compilation of test-general
../libnm/tests/test-general.c: In function ‘test_fixup_vendor_string’:
../libnm/tests/test-general.c:70:3: error: initializer element is not constant
T_DATA ("3Com", "3Com"),
^
../libnm/tests/test-general.c:70:3: error: (near initialization for ‘data[0]’)
../libnm/tests/test-general.c: In function ‘test_fixup_product_string’:
../libnm/tests/test-general.c:365:3: error: initializer element is not constant
T_DATA ("10/100BaseTX [RTL81xx]", "RTL81xx"),
...
Fixes: 817fce917b
This commit is contained in:
@@ -57,11 +57,11 @@ _test_fixup_string (const TestFixupData *data,
|
||||
}
|
||||
|
||||
#define T_DATA(_desc, _expected) \
|
||||
((TestFixupData) { \
|
||||
{ \
|
||||
.desc = _desc, \
|
||||
.expected = _expected, \
|
||||
.line = __LINE__, \
|
||||
})
|
||||
}
|
||||
|
||||
static void
|
||||
test_fixup_vendor_string (void)
|
||||
|
Reference in New Issue
Block a user