Skip to contentSkip to conversation

unit/test-gdbus-client: Fix hanging if D-Bus fails to launch

PATCH In review Luiz Augusto von Dentz 2 participants 2 messages Apr 22, 2015 Bluetooth drivers

lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 1/1 unit/test-gdbus-client: Fix hanging if D-Bus fails to launch

From: Luiz Augusto von Dentz <[email protected]>

In case D-Bus fails to launch make the test fails so it does not hang other tests.

---
 unit/test-gdbus-client.c | 1 +
 1 file changed, 1 insertion(+)
unit/test-gdbus-client.c +1 -0
index 5a4b974..7e16d16 100644
@@ -72,6 +72,7 @@ static struct context *create_context(void)
 		}
 
 		g_free(context);
+		tester_test_failed();
 		return NULL;
 	}
 
Signature · 1 line
2.1.0
#1 lore raw

Hi Luiz,

Quoted 24 lines · Luiz Augusto von Dentz

From: Luiz Augusto von Dentz <[email protected]>

In case D-Bus fails to launch make the test fails so it does not hang other tests.

---
 unit/test-gdbus-client.c | 1 +
 1 file changed, 1 insertion(+)
unit/test-gdbus-client.c +1 -1
index 5a4b974..7e16d16 100644
@@ -72,6 +72,7 @@ static struct context *create_context(void)
                }
 
                g_free(context);
+               tester_test_failed();
                return NULL;
        }
 
--

2.1.0

Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Verified and pushed.

Thanks,
Arman