[gnome-code-assistance] [backends/js] Exit on name lost
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-code-assistance] [backends/js] Exit on name lost
- Date: Sun, 11 Jan 2015 13:56:51 +0000 (UTC)
commit f648cda017ccc4bd544fdd042f56ad1a779a22f6
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Sun Jan 11 14:56:05 2015 +0100
[backends/js] Exit on name lost
.../gnome/codeassistance/transport_dbus.js | 2 ++
tests/service | 4 +++-
2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/backends/jscommon/gnome/codeassistance/transport_dbus.js
b/backends/jscommon/gnome/codeassistance/transport_dbus.js
index 8a0ce7b..61da60d 100644
--- a/backends/jscommon/gnome/codeassistance/transport_dbus.js
+++ b/backends/jscommon/gnome/codeassistance/transport_dbus.js
@@ -2,6 +2,7 @@ const GLib = imports.gi.GLib;
const Gio = imports.gi.Gio;
const Lang = imports.lang;
const Types = imports.gnome.codeassistance.types;
+const system = imports.system;
var ServiceIface = '<node> \
<interface name="org.gnome.CodeAssist.v1.Service"> \
@@ -483,6 +484,7 @@ Transport.prototype = {
},
onNameLost: function(conn, name) {
+ system.exit(1);
},
run: function() {
diff --git a/tests/service b/tests/service
index 10810a6..ad74dca 100755
--- a/tests/service
+++ b/tests/service
@@ -451,9 +451,11 @@ try:
os.environ['DBUS_SESSION_BUS_PID'] = str(daemon.pid)
for testfile in testfiles:
- run_test(testfile)
+ if testfile.endswith('js.json'):
+ run_test(testfile)
finally:
daemon.terminate()
+ print(daemon.stdout.read().decode('utf-8'))
daemon.wait()
if has_failures:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]