mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-20 03:40:47 +02:00
tests: fix tests without libjansson support (--enable-json-validation=no)
This commit is contained in:
parent
39455bb99f
commit
a5acd0bdc6
2 changed files with 4 additions and 2 deletions
|
|
@ -4708,7 +4708,9 @@ test_nm_utils_check_valid_json (void)
|
|||
#else
|
||||
/* Without JSON library everything except empty string is considered valid */
|
||||
_json_config_check_valid ("{ }", TRUE);
|
||||
_json_config_check_valid ("{'%!-a1", TRUE);
|
||||
_json_config_check_valid ("{'%!-a1} ", TRUE);
|
||||
_json_config_check_valid (" {'%!-a1}", TRUE);
|
||||
_json_config_check_valid ("{'%!-a1", FALSE);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
DEVICE=team0
|
||||
ONBOOT=no
|
||||
BOOTPROTO=dhcp
|
||||
TEAM_CONFIG="{ foobar }"
|
||||
TEAM_CONFIG="{ foobar }x"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue