1. 16 Aug, 2021 11 commits
  2. 09 Jul, 2021 1 commit
  3. 06 May, 2021 2 commits
  4. 03 May, 2021 2 commits
  5. 07 Dec, 2020 1 commit
    • Christian Kellner's avatar
      test/common: conditionally re-enable atime checks · c2f1d5c4
      Christian Kellner authored
      The checks for modifying the access time via bolt_fs_touch was
      previously disabled because it did not work on file-systems
      that have the noatime flag set (for very obvious reasons).
      Separate these checks out and re-enable them but make their
      execution depended on the file-system support for access times,
      as reported via statvfs(2).
  6. 06 Dec, 2020 1 commit
    • Robert Hensing's avatar
      test: Disable filesystem access time checks · e2962df4
      Robert Hensing authored
      Access time is not always supported, so support for it is best-effort.
      We disable such assertions so bolt can be unit tested on systems that have
      "noatime" configured to speed up the filesystem.
  7. 01 Dec, 2020 8 commits
  8. 30 Nov, 2020 6 commits
    • Christian Kellner's avatar
      test/mock: plug another tiny leak · c687041c
      Christian Kellner authored
      When removing the host device via mock_sysfs_host_remove, destroy
      the MockDevice for the host.
    • Christian Kellner's avatar
      glue: fix memory leak in conv_flags_to_str · 0b97bcaa
      Christian Kellner authored
      The function 'bolt_flags_class_to_string' returns a dynamically
      allocated string. This was previously not freed, creating a memory
      leak. Its ownership is now correctly transferred to the GVariant
    • Christian Kellner's avatar
      glue: plug tiny memory leak by freeing custom_id · 27ae4440
      Christian Kellner authored
      The memory for custom_id, to identify a custom conversion, is
      dynamically allocated, but was not freed in bolt_wire_conv_unref.
      Explicitly set it to NULL in the other constructor so we don't
      attempt to free invalid memory.
    • Christian Kellner's avatar
      guard: ensure guard->path is always freed · 6f7b323f
      Christian Kellner authored
      Normally 'path' gets freed in bolt_guard_remove, which is called
      from the dispose method of the BoltGuard. There is one exception
      though: when the pipe (named fifo) is still active, we do not
      unlink the path, since we want to recover that guard later. In
      that case the memory for path will be leaked. Add an additional
      g_clear_pointer for path in the 'finalize' method to ensure that
      path always gets freed.
    • Christian Kellner's avatar
      guard: add pre-condition check in guard_save · 48cdeb20
      Christian Kellner authored
      Ensure that we are not saved already in 'bolt_guard_save'.
    • Christian Kellner's avatar
      test: fix various small memory leaks · c4e35871
      Christian Kellner authored
      Add missing g_clear_pointer / g_clear_object calls when a pointer
      was re-used during the tests. In MockSysfs, free the force-power
      path. In test-glue, use g_autoptr for all allocated GParamSpecs.
  9. 28 Nov, 2020 8 commits
    • Christian Kellner's avatar
      manager: plug tiny leak on finalize · 78fe16e3
      Christian Kellner authored
      Properly unref the config key file when finalizing the object.
    • Christian Kellner's avatar
      device: use host ident for host devices · 6a6968a7
      Christian Kellner authored
      If a device is a host device, i.e. does not have a parent device, use
      the new host identification method, which will transparently fall
      back to use the SMBIOS/DMI information, in case the standard
      device information is not available, which is the case on embedded
      thunderbolt controllers.
    • Christian Kellner's avatar
      test/sysfs: check host identification · 290143fb
      Christian Kellner authored
      Add a test to check all host identification method code paths,
      including the standard one via 'bolt_sysfs_device_ident' as
      well as the fallback to DMI information.
    • Christian Kellner's avatar
      test/mock: add the ability to mock the DMI id dev · 2dd16dbb
      Christian Kellner authored
      Add the ability to mock the SMBBIOS/DMI sysfs device. For now only
      the sys_vendor, product_{name, version} attributes are supported,
      which is what we us in bolt.
    • Christian Kellner's avatar
      test/mock: remove force power in finalize · 4ab9f056
      Christian Kellner authored
      If the force power device has not yet been removed, do so in the
      'finalize' method of the MockSysfs object. Move the un-ref'ing of
      the umockdev TestBed down so it happens after the hash tables
      are destroyed.
    • Christian Kellner's avatar
      test/mock-sysfs: ability to remove the host · dfbcf877
      Christian Kellner authored
      Add a new method that allows to remove a host device, i.e. unplug
      the device and remove it from the associated domain.
    • Christian Kellner's avatar
      sysfs: method to perform host identification · de337834
      Christian Kellner authored
      Add a new method to do host identification, which will first check
      if the host device can be identified via the normal device ident
      method. This will fail in case of embedded thunderbolt controller,
      which do not have a DROM and have no device and vendor information
      and thus no corresponding sysfs attributes. In that case we fall
      back to using the SMBIOS/DMI information for the system to ident
      the host.
    • Christian Kellner's avatar
      names: add dmi id sysfs path and attribute names · 0defa936
      Christian Kellner authored
      The SMBIOS/DMI information is exported to userspace via sysfs,
      which is convenient, because the information can thus be read
      conveniently and as a non-root user.
      Define constants for relevant information that can be used to
      identify the computer / host, like the product, vendor and the
      general path to the sysfs device providing that information.