[lxc-devel] [lxc/lxc] a3c8e6: confile: add dummy getter for lxc.include

GitHub noreply at github.com
Mon Jun 5 23:30:03 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: a3c8e600809a6861e2891a972ae8406c9a613f7e
      https://github.com/lxc/lxc/commit/a3c8e600809a6861e2891a972ae8406c9a613f7e
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-06-02 (Fri, 02 Jun 2017)

  Changed paths:
    M src/lxc/confile.c

  Log Message:
  -----------
  confile: add dummy getter for lxc.include

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: c04f651ededff1d55081770686f57918763abb82
      https://github.com/lxc/lxc/commit/c04f651ededff1d55081770686f57918763abb82
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-06-02 (Fri, 02 Jun 2017)

  Changed paths:
    M src/tests/Makefile.am
    A src/tests/config_jump_table.c

  Log Message:
  -----------
  tests: enforce all methods for config items

This adds a test that checks LXC's configuration jump table whether all methods
for a given configuration item are implemented. If it is not, we'll error out.
This should provide additional safety since a) the API can now be sure that
dereferencing the pointer for a given method in the config struct is safe and
b) when users implement new configuration keys and forget to implement a
required method we'll see it right away.

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: 3b0111556991b8cd71ba22983c0c9fca5fa1e8fb
      https://github.com/lxc/lxc/commit/3b0111556991b8cd71ba22983c0c9fca5fa1e8fb
  Author: Stéphane Graber <stgraber at stgraber.org>
  Date:   2017-06-05 (Mon, 05 Jun 2017)

  Changed paths:
    M src/lxc/confile.c
    M src/tests/Makefile.am
    A src/tests/config_jump_table.c

  Log Message:
  -----------
  Merge pull request #1611 from brauner/2017-06-02/enforce_config_item_method_implementation

tests: enforce all methods for config items being implemented


Compare: https://github.com/lxc/lxc/compare/beda39ebbdb1...3b0111556991


More information about the lxc-devel mailing list