summaryrefslogtreecommitdiffstats
path: root/test/bus
Commit message (Collapse)AuthorAgeFilesLines
* bus: Only close connections we ownWilliam A. Kennington III2019-01-141-1/+1
| | | | | | | | | | | | | | | | | | | If we have multiple code segments in the same thread acquiring the default bus, we end up with the potential for one of those handles to be destroyed, calling sd_event_flush_close_unref(). This terminates the bus for all users of the same reference. Any of the reference which still exist after the first destroy will then return ENOTCONN for all bus operations since it is now closed. This behavior is undesirable as we expect to be able to have transient bus references. However, we do want to make sure we clean up any buses created by sd_bus_open(). See openbmc/phosphor-time-manager@4e84539349dac086ce2a58e5b9900ed4e40a2eaf for a specific example of this behavior being unwanted. Change-Id: I8aad7e282e9d66993b63e85532dce37c179ad5dc Signed-off-by: William A. Kennington III <wak@google.com>
* update .clang-format header inclusion orderPatrick Venture2018-08-312-2/+4
| | | | | | | | Added the header inclusion order to the .clang-format file generated these changes. Change-Id: Ia31b21d7ea451cac0309828006bc17c27cbd5bd5 Signed-off-by: Patrick Venture <venture@google.com>
* Update repo to conform to openbmc code standardAndrew Geissler2018-02-052-43/+35
| | | | | Change-Id: If1d6b1f04514367cc544c2507a845b3e9d6d3435 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* match: add string constructorsPatrick Williams2017-05-021-3/+3
| | | | | Change-Id: Ifb6527c5bc686f65fea28679bc653f0509de4aec Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* match: add utilities for match-rulesPatrick Williams2017-05-021-8/+9
| | | | | Change-Id: I47a8c6044f7275994b124e90984cbd8dbef0f0ed Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* match: allow message callbacksPatrick Williams2017-05-011-2/+49
| | | | | | | | | | | The original match constructor only allowed sd_bus_message_handler_t functions, which does not allow for sdbusplus::message::message's to be passed in. Add a constructor that allows functions of the following type: void(*)(sdbusplus::message::message&) Change-Id: Idc006250777c5cc1a5fe48fc411da24339ca165e Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* test: add test for bus::matchPatrick Williams2017-05-011-0/+51
| | | | | Change-Id: Ia45c659a6d88e8a688bcdc92a084a8edc7455ba8 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* bus: add wrapper for sd_bus_list_namesPatrick Williams2017-05-021-0/+51
Change-Id: I94467376e89cc813e270cbbe27b83c4415bb9d85 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
OpenPOWER on IntegriCloud