mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 12:30:07 +01:00
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:
parent
817fce917b
commit
65049f6736
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue