Gio.TestDBus.unset
Description: Reference for Gio.TestDBus.unset

### Function

# Gio TestDBusunset

since: 2.34

#### Declaration

    void
    g_test_dbus_unset (
      void
    )

#### Description

Unset DISPLAY and DBUS_SESSION_BUS_ADDRESS env variables to ensure the test won’t use user’s session bus.

This is useful for unit tests that want to verify behaviour when no session bus is running. It is not necessary to call this if unit test already calls `g_test_dbus_up()` before acquiring the session bus.

Available since: 2.34