1. 23 8月, 2019 1 次提交
    • R
      tests: Add lib- prefix to all mocks · fde36108
      Roman Bolshakov 提交于
      In preparation libtool "-module" flag removal, add lib prefix to all
      mock shared objects.
      
      While at it, introduce VIR_TEST_MOCK macros that makes path out of mock
      name to be used with VIR_TEST_PRELOAD or VIR_TEST_MAIN_PRELOAD.  That,
      hopefully, improves readability, reduces line length and allows to
      tailor VIR_TEST_MOCK for specific platform if it has shared library
      suffix different from ".so".
      Signed-off-by: NRoman Bolshakov <r.bolshakov@yadro.com>
      fde36108
  2. 20 4月, 2019 1 次提交
    • M
      qemucaps2xmltest: Don't leak @binary · 8bf7cc5f
      Michal Privoznik 提交于
      There's no need to keep @binary around.
      virQEMUCapsInitGuestFromBinary() duplicates the string anyway.
      
       1,002 bytes in 36 blocks are definitely lost in loss record 54 of 59
          at 0x483579F: malloc (vg_replace_malloc.c:299)
          by 0x796B1C7: vasprintf (vasprintf.c:73)
          by 0x4C3F2C6: virVasprintfInternal (virstring.c:740)
          by 0x4C3F3DC: virAsprintfInternal (virstring.c:761)
          by 0x13AFC9: testGetCaps (qemucaps2xmltest.c:105)
          by 0x13B200: testQemuCapsXML (qemucaps2xmltest.c:157)
          by 0x13B642: virTestRun (testutils.c:174)
          by 0x13B366: doCapsTest (qemucaps2xmltest.c:191)
          by 0x13FF2B: testQemuCapsIterate (testutilsqemu.c:941)
          by 0x13B427: mymain (qemucaps2xmltest.c:215)
          by 0x13D706: virTestMain (testutils.c:1096)
          by 0x13B489: main (qemucaps2xmltest.c:221)
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      8bf7cc5f
  3. 17 4月, 2019 2 次提交
  4. 13 3月, 2019 7 次提交
  5. 06 2月, 2019 1 次提交
  6. 01 2月, 2019 2 次提交
  7. 14 12月, 2018 1 次提交
    • D
      Remove all Author(s): lines from source file headers · 60046283
      Daniel P. Berrangé 提交于
      In many files there are header comments that contain an Author:
      statement, supposedly reflecting who originally wrote the code.
      In a large collaborative project like libvirt, any non-trivial
      file will have been modified by a large number of different
      contributors. IOW, the Author: comments are quickly out of date,
      omitting people who have made significant contribitions.
      
      In some places Author: lines have been added despite the person
      merely being responsible for creating the file by moving existing
      code out of another file. IOW, the Author: lines give an incorrect
      record of authorship.
      
      With this all in mind, the comments are useless as a means to identify
      who to talk to about code in a particular file. Contributors will always
      be better off using 'git log' and 'git blame' if they need to  find the
      author of a particular bit of code.
      
      This commit thus deletes all Author: comments from the source and adds
      a rule to prevent them reappearing.
      
      The Copyright headers are similarly misleading and inaccurate, however,
      we cannot delete these as they have legal meaning, despite being largely
      inaccurate. In addition only the copyright holder is permitted to change
      their respective copyright statement.
      Reviewed-by: NErik Skultety <eskultet@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      60046283
  8. 29 11月, 2018 1 次提交
  9. 28 11月, 2018 1 次提交
  10. 21 9月, 2018 1 次提交
  11. 17 9月, 2018 2 次提交
  12. 13 8月, 2018 1 次提交
  13. 18 7月, 2018 1 次提交
  14. 11 5月, 2018 1 次提交
  15. 03 11月, 2017 1 次提交
    • A
      Remove backslash alignment attempts · 3e7db8d3
      Andrea Bolognani 提交于
      Right-aligning backslashes when defining macros or using complex
      commands in Makefiles looks cute, but as soon as any changes is
      required to the code you end up with either distractingly broken
      alignment or unnecessarily big diffs where most of the changes
      are just pushing all backslashes a few characters to one side.
      
      Generated using
      
        $ git grep -El '[[:blank:]][[:blank:]]\\$' | \
          grep -E '*\.([chx]|am|mk)$$' | \
          while read f; do \
            sed -Ei 's/[[:blank:]]*[[:blank:]]\\$/ \\/g' "$f"; \
          done
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      3e7db8d3
  16. 04 4月, 2017 1 次提交
  17. 08 6月, 2016 3 次提交
  18. 24 9月, 2015 1 次提交
  19. 24 4月, 2015 1 次提交
  20. 27 3月, 2015 2 次提交
  21. 25 3月, 2015 1 次提交
  22. 24 3月, 2015 1 次提交
  23. 14 7月, 2014 1 次提交
    • E
      capabilities: use bool instead of int · 58156f39
      Eric Blake 提交于
      While preparing to add a capability for active commit, I noticed
      that the existing code was abusing int for boolean values.
      
      * src/conf/capabilities.h (_virCapsGuestFeature, _virCapsHost)
      (virCapabilitiesNew, virCapabilitiesAddGuestFeature): Improve
      types.
      * src/conf/capabilities.c (virCapabilitiesNew)
      (virCapabilitiesAddGuestFeature): Adjust signature.
      * src/bhyve/bhyve_capabilities.c (virBhyveCapsBuild): Update
      clients.
      * src/esx/esx_driver.c (esxCapsInit): Likewise.
      * src/libxl/libxl_conf.c (libxlMakeCapabilities): Likewise.
      * src/lxc/lxc_conf.c (virLXCDriverCapsInit): Likewise.
      * src/openvz/openvz_conf.c (openvzCapsInit): Likewise.
      * src/parallels/parallels_driver.c (parallelsBuildCapabilities):
      Likewise.
      * src/phyp/phyp_driver.c (phypCapsInit): Likewise.
      * src/qemu/qemu_capabilities.c (virQEMUCapsInit)
      (virQEMUCapsInitGuestFromBinary): Likewise.
      * src/security/virt-aa-helper.c (get_definition): Likewise.
      * src/test/test_driver.c (testBuildCapabilities): Likewise.
      * src/uml/uml_conf.c (umlCapsInit): Likewise.
      * src/vbox/vbox_tmpl.c (vboxCapsInit): Likewise.
      * src/vmware/vmware_conf.c (vmwareCapsInit): Likewise.
      * src/xen/xen_hypervisor.c (xenHypervisorBuildCapabilities):
      Likewise.
      * src/xenapi/xenapi_driver.c (getCapsObject): Likewise.
      * tests/qemucaps2xmltest.c (testGetCaps): Likewise.
      * tests/testutils.c (virTestGenericCapsInit): Likewise.
      * tests/testutilslxc.c (testLXCCapsInit): Likewise.
      * tests/testutilsqemu.c (testQemuCapsInit): Likewise.
      * tests/testutilsxen.c (testXenCapsInit): Likewise.
      * tests/vircaps2xmltest.c (buildVirCapabilities): Likewise.
      * tests/vircapstest.c (buildNUMATopology): Likewise.
      * tests/vmx2xmltest.c (testCapsInit): Likewise.
      * tests/xml2vmxtest.c (testCapsInit): Likewise.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      58156f39
  24. 27 3月, 2014 1 次提交
    • N
      Fix memory leak in testGetCaps() · 4154c4e9
      Nehal J Wani 提交于
      While running qemucaps2xmltest, it was found that valgrind pointed out
      the following memory leaks:
      
      ==27045== 160 (112 direct, 48 indirect) bytes in 1 blocks are definitely lost in loss record 51 of 65
      ==27045==    at 0x4A0577B: calloc (vg_replace_malloc.c:593)
      ==27045==    by 0x4C6BACD: virAllocVar (viralloc.c:560)
      ==27045==    by 0x4CAF095: virObjectNew (virobject.c:193)
      ==27045==    by 0x421453: virQEMUCapsNew (qemu_capabilities.c:1805)
      ==27045==    by 0x41F04F: testQemuCapsXML (qemucaps2xmltest.c:72)
      ==27045==    by 0x41FFD1: virtTestRun (testutils.c:201)
      ==27045==    by 0x41EE7A: mymain (qemucaps2xmltest.c:203)
      ==27045==    by 0x42074D: virtTestMain (testutils.c:789)
      ==27045==    by 0x3E6CE1ED1C: (below main) (libc-start.c:226)
      ==27045==
      ==27045== 160 (112 direct, 48 indirect) bytes in 1 blocks are definitely lost in loss record 52 of 65
      ==27045==    at 0x4A0577B: calloc (vg_replace_malloc.c:593)
      ==27045==    by 0x4C6BACD: virAllocVar (viralloc.c:560)
      ==27045==    by 0x4CAF095: virObjectNew (virobject.c:193)
      ==27045==    by 0x421453: virQEMUCapsNew (qemu_capabilities.c:1805)
      ==27045==    by 0x41F04F: testQemuCapsXML (qemucaps2xmltest.c:72)
      ==27045==    by 0x41FFD1: virtTestRun (testutils.c:201)
      ==27045==    by 0x41EEA3: mymain (qemucaps2xmltest.c:204)
      ==27045==    by 0x42074D: virtTestMain (testutils.c:789)
      ==27045==    by 0x3E6CE1ED1C: (below main) (libc-start.c:226)
      4154c4e9
  25. 26 3月, 2014 1 次提交
    • F
      qemu: add unit tests for the capabilities xml · 231b63e3
      Francesco Romani 提交于
      The test is loosely inspired from qemucapabilitiestest
      and qemuxml2xmltest.
      
      Added a new test instead of extending an existing one because
      the feature being tested don't really fits nicely in any
      existing place.
      231b63e3