1. 06 9月, 2019 1 次提交
  2. 28 8月, 2019 4 次提交
  3. 27 8月, 2019 1 次提交
  4. 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
  5. 19 8月, 2019 2 次提交
  6. 17 8月, 2019 1 次提交
  7. 26 7月, 2019 1 次提交
  8. 16 7月, 2019 1 次提交
  9. 15 7月, 2019 1 次提交
  10. 03 7月, 2019 4 次提交
  11. 26 6月, 2019 1 次提交
  12. 21 6月, 2019 1 次提交
  13. 20 6月, 2019 4 次提交
  14. 03 6月, 2019 1 次提交
  15. 23 5月, 2019 1 次提交
  16. 22 5月, 2019 2 次提交
  17. 15 5月, 2019 1 次提交
  18. 17 4月, 2019 1 次提交
  19. 12 4月, 2019 3 次提交
  20. 11 4月, 2019 5 次提交
  21. 03 4月, 2019 1 次提交
  22. 28 3月, 2019 2 次提交
    • M
      qemuxml2argvtest: Drop dependency between testInfoArgName and virQEMUCapsFlags enums · 97b729ef
      Michal Privoznik 提交于
      Introduced in fdf6c89e, this dependency looks weird. It was
      needed because of the way that while() loop was written - it
      fetches next argument in every iteration. Therefore, our only
      option was for ARG_END to have the same value as QEMU_CAPS_LAST.
      This also meant that QEMU_CAPS_* could have been only at the end
      of the __VA_ARGS__.
      
      This commit reworks the while() loop and removes the dependency.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      97b729ef
    • M
      qemu_capabilities; Drop virQEMUCapsSetVAList · 087a74e1
      Michal Privoznik 提交于
      There is one specific caller (testInfoSetArgs() in
      qemuxml2argvtest.c) which expect the va_list argument to change
      after returning from the virQEMUCapsSetVAList() function.
      However, since we are passing plain va_list this is not
      guaranteed. The man page of stdarg(3) says:
      
        If ap is passed to a function that uses va_arg(ap,type), then
        the value of ap is undefined after the return of that function.
      
      (ap is a variable of type va_list)
      
      I've seen this in action in fact: on i686 the qemuxml2argvtest
      fails on the second test case because testInfoSetArgs() sees
      ARG_QEMU_CAPS and calls virQEMUCapsSetVAList to process the
      capabilities (in this case there's just one
      QEMU_CAPS_SECCOMP_BLACKLIST). But since the changes are not
      reflected in the caller, in the next iteration testInfoSetArgs()
      sees the QEMU capability and not ARG_END.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      087a74e1