diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-12-27 15:48:07 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-12-27 15:48:15 -0500 |
commit | 79ccff06c19c0ee74b9744928bc40f2ce658fde2 (patch) | |
tree | 0baeeacff5192b809021bc407a59a15e2856a673 /src/libsystemd-bus/test-bus-kernel-bloom.c | |
parent | a9a305332b7faf0d0d16db04909badaf6a095fef (diff) |
bus: fix running tests in parallel
Diffstat (limited to 'src/libsystemd-bus/test-bus-kernel-bloom.c')
-rw-r--r-- | src/libsystemd-bus/test-bus-kernel-bloom.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libsystemd-bus/test-bus-kernel-bloom.c b/src/libsystemd-bus/test-bus-kernel-bloom.c index 772831bdd9..0ecad18f45 100644 --- a/src/libsystemd-bus/test-bus-kernel-bloom.c +++ b/src/libsystemd-bus/test-bus-kernel-bloom.c @@ -37,12 +37,14 @@ static void test_one( bool good) { _cleanup_close_ int bus_ref = -1; - _cleanup_free_ char *bus_name = NULL, *address = NULL; + _cleanup_free_ char *name = NULL, *bus_name = NULL, *address = NULL; _cleanup_bus_message_unref_ sd_bus_message *m = NULL; sd_bus *a, *b; int r; - bus_ref = bus_kernel_create_bus("deine-mutter", false, &bus_name); + assert_se(asprintf(&name, "deine-mutter-%u", (unsigned) getpid()) >= 0); + + bus_ref = bus_kernel_create_bus(name, false, &bus_name); if (bus_ref == -ENOENT) exit(EXIT_TEST_SKIP); |