mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-22 18:54:36 +00:00
tests: fix tests without libjansson support (--enable-json-validation=no)
(cherry picked from commit a5acd0bdc6
)
This commit is contained in:
parent
e1d3759712
commit
c218fd44bc
|
@ -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…
Reference in a new issue