summaryrefslogtreecommitdiff
path: root/Makefile.examples
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2022-02-10 18:56:47 +0100
committerThomas Haller <thaller@redhat.com>2022-02-10 19:06:33 +0100
commitdc64cff166791135dd9194ddb73ee3af20c08b5d (patch)
treee56db52845b180a3560785f49d30e044d31bc724 /Makefile.examples
parenteaa0b533da49bb6a77e3664252b7fc0b3c4b6e63 (diff)
downloadNetworkManager-dc64cff166791135dd9194ddb73ee3af20c08b5d.tar.gz
core/tests: make test_machine_id_read() more robust against the test system
test_machine_id_read() is a flawed unit test, as it reads the machine-id of the machine where it's running. That means the test depends on the test machine, which is obviously a problem. If you had no /etc/machine-id but a /var/lib/dbus/machine-id, then previously the test would fail. If the file exists, assume we are able to read a valid machine-id. On test systems that have a bogus /etc/machine-id or /var/lib/dbus/machine-id, the test would still fail. Just don't do that.
Diffstat (limited to 'Makefile.examples')
0 files changed, 0 insertions, 0 deletions