After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 772471 - Test suite fails if run in parallel
Test suite fails if run in parallel
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: VPN: vpnc
1.4.x
Other Linux
: Normal normal
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2016-10-05 19:25 UTC by Michael Biebl
Modified: 2016-10-06 12:00 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Michael Biebl 2016-10-05 19:25:56 UTC
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=839849

This is the same issue as #772464.

If the network-manager-vpnc 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.

To reproduce, you need to have --with-libnm-glib, so both test-import-export and test-import-export-glib are enabled. Then run the test-suite with make check -j4