NetworkManager/libnm-util
Thomas Haller 25ade39752 tests: use NMTST_EXPECT*() macros
Tests are commonly created via copy&paste. Hence, it's
better to express a certain concept explicitly via a function
or macro. This way, the implementation of the concept can be
adjusted at one place, without requiring to change all the callers.

Also, the macro is shorter, and brevity is better for tests
so it's easier to understand what the test does. Without being
bothered by noise from the redundant information.

Also, the macro knows better which message to expect. For example,
messages inside "src" are prepended by nm-logging.c with a level
and a timestamp. The expect macro is aware of that and tests for it

  #define NMTST_EXPECT_NM_ERROR(msg)      NMTST_EXPECT_NM (G_LOG_LEVEL_MESSAGE, "*<error> [*] "msg)

This again allows the caller to ignore this prefix, but still assert
more strictly.
2018-01-08 12:38:54 +01:00
..
tests tests: use NMTST_EXPECT*() macros 2018-01-08 12:38:54 +01:00
COPYING
crypto.c crypto: don't try to decrypt PKCS#8 key if no password is supplied 2016-09-23 18:05:54 +02:00
crypto.h all: cleanup includes in header files 2016-08-17 19:09:50 +02:00
crypto_gnutls.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
crypto_nss.c all: use "unsigned" instead of "unsigned int" 2017-03-14 11:26:29 +01:00
libnm-util.pc.in
libnm-util.ver libnm-util: add non-failing versions of nm_connection_new_from_hash() and replace-settings 2016-03-29 11:56:27 +02:00
meson.build build: refine the NETWORKMANAGER_COMPILATION define 2018-01-08 12:38:53 +01:00
NetworkManager.h include: use double-quotes to include our own headers 2017-03-09 14:12:35 +01:00
NetworkManagerVPN.h dbus: remove the telepathy annotations 2016-04-05 14:37:51 +02:00
nm-connection.c all: modify line separator comments to be 80 chars wide 2016-10-03 12:01:15 +02:00
nm-connection.h include: use double-quotes to include our own headers 2017-03-09 14:12:35 +01:00
nm-dbus-glib-types.h core: final gdbus porting 2015-08-10 09:41:26 -04:00
nm-gvaluearray-compat.h nm-glib: remove G_GNUC_EXTENSION 2016-06-17 12:25:15 +02:00
nm-param-spec-specialized.c build: don't link against libm.so 2017-03-23 19:06:02 +01:00
nm-param-spec-specialized.h all: cleanup includes in header files 2016-08-17 19:09:50 +02:00
nm-setting-8021x.c all: fix typos in documentation and comments 2017-03-17 15:11:20 +01:00
nm-setting-8021x.h include: use double-quotes to include our own headers 2017-03-09 14:12:35 +01:00
nm-setting-adsl.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-setting-adsl.h include: use double-quotes to include our own headers 2017-03-09 14:12:35 +01:00
nm-setting-bluetooth.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-setting-bluetooth.h libnm-util, libnm-glib: standardize copyright/license headers 2014-07-15 09:44:54 -04:00
nm-setting-bond.c all: replace uses of inet_aton() and friends 2017-06-02 14:07:10 +02:00
nm-setting-bond.h include: use double-quotes to include our own headers 2017-03-09 14:12:35 +01:00
nm-setting-bridge-port.c all: fix minor typos in settings docs 2017-07-03 21:23:27 +02:00
nm-setting-bridge-port.h include: use double-quotes to include our own headers 2017-03-09 14:12:35 +01:00
nm-setting-bridge.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-setting-bridge.h include: use double-quotes to include our own headers 2017-03-09 14:12:35 +01:00
nm-setting-cdma.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-setting-cdma.h include: use double-quotes to include our own headers 2017-03-09 14:12:35 +01:00
nm-setting-connection.c all: fix typo 'entires' -> 'entries' 2017-05-05 19:14:19 +02:00
nm-setting-connection.h libnm-util, libnm-glib: whitespace fixes 2014-07-15 09:44:55 -04:00
nm-setting-dcb.c all: fix minor typos in settings docs 2017-07-03 21:23:27 +02:00
nm-setting-dcb.h include: use double-quotes to include our own headers 2017-03-09 14:12:35 +01:00
nm-setting-generic.c all: modify line separator comments to be 80 chars wide 2016-10-03 12:01:15 +02:00
nm-setting-generic.h include: use double-quotes to include our own headers 2017-03-09 14:12:35 +01:00
nm-setting-gsm.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-setting-gsm.h include: use double-quotes to include our own headers 2017-03-09 14:12:35 +01:00
nm-setting-infiniband.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-setting-infiniband.h include: use double-quotes to include our own headers 2017-03-09 14:12:35 +01:00
nm-setting-ip4-config.c all: fix typos in documentation, translated strings and comments 2017-05-28 17:33:37 +02:00
nm-setting-ip4-config.h libnm-util: add ipv4.dhcp-timeout property 2015-10-06 14:16:55 +02:00
nm-setting-ip6-config.c all: fix typos in documentation, translated strings and comments 2017-05-28 17:33:37 +02:00
nm-setting-ip6-config.h libnm: add NMSettingIPConfig:route-metric 2014-11-07 15:19:06 +01:00
nm-setting-olpc-mesh.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-setting-olpc-mesh.h include: use double-quotes to include our own headers 2017-03-09 14:12:35 +01:00
nm-setting-ppp.c all: fix typos in documentation, translated strings and comments 2017-05-28 17:33:37 +02:00
nm-setting-ppp.h include: use double-quotes to include our own headers 2017-03-09 14:12:35 +01:00
nm-setting-pppoe.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-setting-pppoe.h include: use double-quotes to include our own headers 2017-03-09 14:12:35 +01:00
nm-setting-private.h all: cleanup includes in header files 2016-08-17 19:09:50 +02:00
nm-setting-serial.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-setting-serial.h include: use double-quotes to include our own headers 2017-03-09 14:12:35 +01:00
nm-setting-team-port.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-setting-team-port.h include: use double-quotes to include our own headers 2017-03-09 14:12:35 +01:00
nm-setting-team.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-setting-team.h include: use double-quotes to include our own headers 2017-03-09 14:12:35 +01:00
nm-setting-template.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-setting-template.h include: use double-quotes to include our own headers 2017-03-09 14:12:35 +01:00
nm-setting-vlan.c all: fix typo 'entires' -> 'entries' 2017-05-05 19:14:19 +02:00
nm-setting-vlan.h vlan: (all) add VLAN MVRP flag 2015-10-27 17:17:05 +01:00
nm-setting-vpn.c libnm/vpn: fix secret comparison 2017-12-18 13:29:32 +01:00
nm-setting-vpn.h include: use double-quotes to include our own headers 2017-03-09 14:12:35 +01:00
nm-setting-wimax.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-setting-wimax.h include: use double-quotes to include our own headers 2017-03-09 14:12:35 +01:00
nm-setting-wired.c all: fix minor typos in settings docs 2017-07-03 21:23:27 +02:00
nm-setting-wired.h include: use double-quotes to include our own headers 2017-03-09 14:12:35 +01:00
nm-setting-wireless-security.c all: fix typos in documentation and comments 2017-03-17 15:11:20 +01:00
nm-setting-wireless-security.h include: use double-quotes to include our own headers 2017-03-09 14:12:35 +01:00
nm-setting-wireless.c all: replace _nm_utils_string_in_list() with g_strv_contains() 2016-06-17 12:25:33 +02:00
nm-setting-wireless.h include: use double-quotes to include our own headers 2017-03-09 14:12:35 +01:00
nm-setting.c all: avoid coverity warnings about "Wrong Check of Return Value" 2017-10-30 14:10:56 +01:00
nm-setting.h include: use double-quotes to include our own headers 2017-03-09 14:12:35 +01:00
nm-utils-enum-types.c.template build: use template files for enum types' sources generation 2017-12-18 11:25:06 +01:00
nm-utils-enum-types.h.template build: use template files for enum types' sources generation 2017-12-18 11:25:06 +01:00
nm-utils-private.h all: replace _nm_utils_string_in_list() with g_strv_contains() 2016-06-17 12:25:33 +02:00
nm-utils.c all: use _nm_utils_ip4_*() utils functions 2017-09-05 18:44:04 +02:00
nm-utils.h libnm: add function nm_utils_file_search_in_paths() 2014-12-05 11:07:42 +01:00
nm-value-transforms.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-version.h release: bump version to 1.9.0 (development) 2017-03-28 16:34:22 +02:00