From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#43252: Fwd: bug#43252: 27.1; DBus properties lack type hints or overrides Date: Thu, 10 Sep 2020 10:00:00 +0200 Message-ID: <87eenacb9b.fsf@gmx.de> References: <87v9gqquct.fsf@ccss.com> Mime-Version: 1.0 Content-Type: message/rfc822 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25664"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: 43252@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 10 10:01:37 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kGHWS-0006ZP-Uf for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Sep 2020 10:01:37 +0200 Original-Received: from localhost ([::1]:42818 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kGHWR-0008OC-Pl for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Sep 2020 04:01:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45606) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kGHVu-0008AE-Kq for bug-gnu-emacs@gnu.org; Thu, 10 Sep 2020 04:01:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52590) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kGHVu-0001MJ-By for bug-gnu-emacs@gnu.org; Thu, 10 Sep 2020 04:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kGHVu-00050s-AL for bug-gnu-emacs@gnu.org; Thu, 10 Sep 2020 04:01:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87v9gqquct.fsf@ccss.com> Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Sep 2020 08:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43252 X-GNU-PR-Package: emacs Original-Received: via spool by 43252-submit@debbugs.gnu.org id=B43252.159972481016244 (code B ref 43252); Thu, 10 Sep 2020 08:01:02 +0000 Original-Received: (at 43252) by debbugs.gnu.org; 10 Sep 2020 08:00:10 +0000 Original-Received: from localhost ([127.0.0.1]:35897 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kGHV4-0004Db-7E for submit@debbugs.gnu.org; Thu, 10 Sep 2020 04:00:10 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:43825) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kGHV2-000443-Cs for 43252@debbugs.gnu.org; Thu, 10 Sep 2020 04:00:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1599724802; bh=tlbKWixSNKjkTkcMG0uerCa/rOFgqdB7rXBCB3Y7DdU=; h=X-UI-Sender-Class:From:To:Subject:Date; b=NAzGuGcXBvufgSi5vn/kwe4bYwEHYDwKex0dw/uJlqpW3rgCEN1UAViqZc0jlUFFX gf81jwIEMedrff0dW06//q4toGU27RY1a83BwTNIvsh4Rdxy6Q8YeRFyQ6zzzw4QjQ lDiLdCwMZWpVHgZyyL/rG4seVdpvAlJTCuGlhQDk= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([212.86.53.238]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MBDnI-1kOYRT3aFK-00CjVC for <43252@debbugs.gnu.org>; Thu, 10 Sep 2020 10:00:01 +0200 Content-Disposition: inline X-Provags-ID: V03:K1:RG0zcK5HQ4HPiAvupYRudr89WaYHsDZDgLBE2Ab7WfY/h4Cvpqk SjzDY/jh74k8C4R7kb/7Uxg9MREqDaBKAHneuk/tdBiYDQhezoHzrCRUUu+E2vHz6sVL4/T A5e44OIRtruP/WgXUbKFdY+cTjRikFr63YjLXODmuz8J7DKgovjqg5G3/ZxGZNnEvzFxiET E5R0GFsMozgByYLrIT5fg== X-UI-Out-Filterresults: notjunk:1;V03:K0:7yrJ75W/R2s=:MNPHgojTb6BFVAS1qW6n2v tGC/MnjjZuMnKeApi85Vb4Ro9FFwHbHeCO0nqoYdCkpsultB9s65bo0ltjin0obeCmhfD8M3p ULmNqkkHtTSU7zyheERVkzMAEGnZW9K56/KpWU3ti6bRzMbDOp9RGJuQW20ieqV15R44sLR5Z n4umfzsVduJMvLfs/gUGNtcwM9Lj4CoK//KAC16IJbnfsW5wg8hCItoenGgClssMjcUVHypjb uxauUvCKBvvwIQtRwnguWFBtS4XB0cHF2L73t8jojSuyuVJi8p4fEdS9g4vc4rkY4pM+C9uAO DYpTss7WQ/2x2+dyk14nC5H0mqTFnkL+f7rCunGi4Wn6SyDJ5G5boDli+u3yaK3O68t0+AZ5Z ZbJCBlaLKrtcfpuEPGNhfn8/u6fJnoewKqtiRelJbKXRPE0Q85HJd2wOZ8fM3K+M8y6xewHPk fa06uAAZTdDUg0tZDApp41Y6dgCLpx7ZeBjxtcSulNytMPGQI31zW9cn0Ipz2K4Jvl388xLaF XkWvert57UgMPOH8Yvcg1Vb+KdBsSTwNb3aRQHZiAqF+PMM4lOpmvB0UTY5HtYhRd3CZkwXvE tKZArb+eyN4N82xS7EwqU1/HIJUlXYdhWumrxBsq6Ofn0KGFH7GplCZrhuZdnvk23KLCdOybi EFKD3LlziyovCms2eYm2HtZlPwALpJYepplrlToJMzpiZsrNri4q1wV7zZzaK/vm6mvBYECld J/TruMBH1rctlvVfZB45Tbgoo+/OAZvtFovZ3JU0BZEJ4/jYiaqSkqhb5OolTuJFaPJkGHDy X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:187721 Archived-At: From: Hugh Daschbach To: Michael Albinus Subject: Re: bug#43252: 27.1; DBus properties lack type hints or overrides Date: Wed, 09 Sep 2020 19:32:57 -0700 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="==-=-=" --==-=-= Content-Type: text/plain; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Michael Albinus writes: > Hugh Daschbach writes: > > Hi Hugh, > > Appended. And thanks for your offer! Thanks, Michael. I've sent the email requesting the paperwork. Will let you know when it's submitted. In the meantime, just to check that I'm on the right track, I've attached a failing test. Sadly, it's more than 15 lines. Feel free to test with it. For the moment, I'll only forward failing tests. Once the paperwork is finalized I'll send you whatever suite of tests I've managed to come up with by then. Just for the record, I'm testing master currently at d08568e6e92. Cheers, Hugh --==-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=dbus-tests.diff Content-Description: Failing test, registering a property with compound value. Content-Transfer-Encoding: quoted-printable diff --git a/test/lisp/net/dbus-tests.el b/test/lisp/net/dbus-tests.el index 8b456c3551f..8b79f5ac201 100644 =2D-- a/test/lisp/net/dbus-tests.el +++ b/test/lisp/net/dbus-tests.el @@ -520,6 +520,31 @@ dbus-test05-register-property-several-paths ;; Cleanup. (dbus-unregister-service :session dbus--test-service))) +(ert-deftest dbus-test06-register-property-types () + "Check property type preservation for an own service." + (skip-unless dbus--test-enabled-session-bus) + (dbus-ignore-errors (dbus-unregister-service :session dbus--test-servic= e)) + + (unwind-protect + (let ((byte-array "ByteArray")) + (should + (equal + (dbus-register-property + :session dbus--test-service dbus--test-path + dbus--test-interface byte-array :read byte-array '(:array :byt= e 1 :byte 2 : byte 3)) + `((:property :session dbus--test-path ,byte-array) + (,dbus--test-service ,dbus--test-path)))) + (should + (string-equal + (dbus-get-property + :session dbus--test-service dbus--test-path + dbus--test-interface byte-array) + '(1 2 3)))) + + ;; Cleanup. + (dbus-unregister-service :session dbus--test-service))) + + (defun dbus-test-all (&optional interactive) "Run all tests for \\[dbus]." (interactive "p") --==-=-=--