NetworkManager/src/tests
Thomas Haller a2d59f5f10 platform: add buffer argument to platform to-string functions
Arguably, it is more convenient to use the static buffer as
it saves typing.

But having such a low-level function use a static buffer also
limits the way how to use it. As it was, you could not avoid
using the static buffer.

E.g. you cannot do:

  char buf[100];

  _LOGD ("nmp-object: %s; platform-link: %s",
         nmp_object_to_string (nmpobj, buf, sizeof(buf)),
         nm_platform_link_to_string (link));

This will fail for non-obvious reasons because both
to-string functions end up using the same static buffer.

Also change the to-string implementations to accept NULL
as valid and return it as "(null)".

https://bugzilla.gnome.org/show_bug.cgi?id=756427
2015-11-01 17:28:08 +01:00
..
config config: drop global-dns.enable option in favor of .config.enable 2015-10-05 17:12:50 +02:00
Makefile.am build: extract version macros from "nm-version.h" to new header file "nm-version-macros.h" 2015-09-30 23:10:29 +02:00
test-dcb.c all: make use of new header file "nm-default.h" 2015-08-05 15:32:40 +02:00
test-general-with-expect.c core/test: extend timeout for kill-process utils test 2015-09-04 20:53:03 +02:00
test-general.c tests: add a testcase for matching VLAN connections 2015-10-27 17:17:06 +01:00
test-ip4-config.c core: add @merge_flags argument to nm_ip4_config_merge() and nm_ip6_config_merge() 2015-08-06 17:52:55 +02:00
test-ip6-config.c platform: add buffer argument to platform to-string functions 2015-11-01 17:28:08 +01:00
test-resolvconf-capture.c all: make use of new header file "nm-default.h" 2015-08-05 15:32:40 +02:00
test-route-manager.c platform: add buffer argument to platform to-string functions 2015-11-01 17:28:08 +01:00
test-secret-agent.py use /usr/bin/env instead of /bin/env 2011-03-29 01:00:47 +02:00
test-wired-defname.c all: make use of new header file "nm-default.h" 2015-08-05 15:32:40 +02:00