dhcp: fix test for out-of-tree build

New files must be written to the build directory, not to the source
one.

Fixes: 5ee2f3d1dc ('dhcp/tests: refactor tests for nm_dhcp_dhclient_save_duid()')
(cherry picked from commit 2c056cf9a3)
This commit is contained in:
Beniamino Galvani 2023-01-11 10:44:08 +01:00
parent af1bbe8bd9
commit 3c5eb108e9

View file

@ -904,7 +904,7 @@ _check_duid_impl(const guint8 *duid_bin,
gs_free_error GError *error = NULL;
gs_free char *contents = NULL;
gboolean success;
const char *path = NM_BUILD_SRCDIR "/src/core/dhcp/tests/check-duid.lease";
const char *path = NM_BUILD_BUILDDIR "/src/core/dhcp/tests/check-duid.lease";
gs_unref_bytes GBytes *duid = NULL;
gsize contents_len;