diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2022-06-01 14:09:23 -0700 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2022-06-02 12:00:28 -0700 |
commit | 7bcd32e67e9388c49212e5dd5dd431c9ec079eb0 (patch) | |
tree | d49bed196f6a25fec3e550b427fa519bb532cb5e /tools | |
parent | 93850c827d549115f0396da42c4a0529feeed1a3 (diff) | |
download | bluez-7bcd32e67e9388c49212e5dd5dd431c9ec079eb0.tar.gz |
test-runner: Fix not waiting for system_bus_socket
This makes test-runner wait for system_bus_socket to be available before
continuing otherwise the likes of bluetoothd would likely fail to start.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/test-runner.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/test-runner.c b/tools/test-runner.c index 1f1a8c36f..945a16a77 100644 --- a/tools/test-runner.c +++ b/tools/test-runner.c @@ -452,13 +452,13 @@ static pid_t start_dbus_daemon(void) if (!stat("/run/dbus/system_bus_socket", &st)) { printf("Found D-Bus daemon socket\n"); - break; + return pid; } - usleep(25 * 1000); + sleep(1); } - return pid; + return -1; } static const char *daemon_table[] = { |