branch: externals/dbus-codegen
commit cfc46758c6252a602eea3dbc179f8094ea2a1a85
Author: Stefan Monnier <[email protected]>
Commit: Stefan Monnier <[email protected]>
* tests/dbus-codegen-tests.el: Fix up compilation
(dbus-codegen-tests-introspection-data): Define during compilation.
---
tests/dbus-codegen-tests.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/tests/dbus-codegen-tests.el b/tests/dbus-codegen-tests.el
index 2303976..6184c46 100644
--- a/tests/dbus-codegen-tests.el
+++ b/tests/dbus-codegen-tests.el
@@ -1,4 +1,4 @@
-;; Copyright (C) 2015 Free Software Foundation, Inc.
+;; Copyright (C) 2015-2016 Free Software Foundation, Inc.
;; This file is part of GNU Emacs.
@@ -58,7 +58,8 @@
'(:array (:dict-entry :string :int32))
'(("a" . 1) ("b" . 2) ("c" . 3))))))
-(defconst dbus-codegen-tests-introspection-data "\
+(eval-when-compile
+ (defconst dbus-codegen-tests-introspection-data "\
<node>
<interface name='org.gtk.GDBus.PeerTestInterface'>
<method name='HelloPeer'>
@@ -79,7 +80,7 @@
value='false'/>
</property>
</interface>
-</node>")
+</node>"))
(ert-deftest dbus-codegen-define-proxy ()
(dbus-codegen-define-proxy test-proxy