GNOME Bugzilla – Bug 772464
Test suite fails if run in parallel
Last modified: 2016-10-06 11:54:58 UTC
If the network-manager-openvpn build is run with make -j 4 , it fails The problem is that test-import-export and test-import-export-glib are run in parallel and they use the same tmp directory which is hard-coded to #define TMPDIR TEST_BUILDDIR"/conf-tmp" So there is a race and it's possible that they unlink files from the other running process We should use something like g_mkdtemp() instead, which ensures we have a unique directory per process.
I assume you mean nm-openvpn? Because nm-openconnect has no unit tests...
ah, you even said it... just the component was wrong.
Yes, I meant nm-openvpn. Sorry for the confusion. We ran into this issue recently when I switching on support for building nm-openvpn in parallel. See for example: https://buildd.debian.org/status/fetch.php?pkg=network-manager-openvpn&arch=amd64&ver=1.2.6-1&stamp=1475604711
The problematic code is https://git.gnome.org/browse/network-manager-openvpn/tree/properties/tests/test-import-export.c#n37
Thomas, can we clone this bug for network-manager-vpnc as well? See https://buildd.debian.org/status/fetch.php?pkg=network-manager-vpnc&arch=amd64&ver=1.2.4-1&stamp=1475606016
fixed in master: https://git.gnome.org/browse/network-manager-openvpn/commit/?id=94499b2d6203ec321b1417369278ca3cebe0c401 nm-vpnc (bug 772471) follows... Thanks for reporting!