1. 23 9月, 2016 1 次提交
  2. 08 9月, 2016 1 次提交
  3. 23 2月, 2016 1 次提交
  4. 05 12月, 2015 1 次提交
    • M
      tests: Use proper functions types instead of void (*fn) · 041088c7
      Markus Armbruster 提交于
      We have several function parameters declared as void (*fn).  This is
      just a stupid way to write void *, and the only purpose writing it
      like that could serve is obscuring the sin of bypassing the type
      system without need.
      
      The original sin is commit 49ee3590: its qtest_add_func() is a wrapper
      for g_test_add_func().  Fix the parameter type to match
      g_test_add_func()'s.  This uncovers type errors in ide-test.c; fix
      them.
      
      Commit 7949c0e3 faithfully repeated the sin for qtest_add_data_func().
      Fix it the same way, along with a harmless type error uncovered in
      vhost-user-test.c.
      
      Commit 063c23d9 repeated it for qtest_add_abrt_handler().  The screwy
      parameter gets assigned to GHook member func, so change its type to
      match.  Requires wrapping kill_qemu() to keep the type checker happy.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      [AF/armbru: Inline GTestFunc/GTestDataFunc typedef for old GLib]
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NAndreas Färber <afaerber@suse.de>
      041088c7
  5. 25 10月, 2015 1 次提交
  6. 20 10月, 2015 1 次提交
  7. 09 10月, 2015 1 次提交
  8. 23 5月, 2015 1 次提交
    • J
      qtest: Add base64 encoded read/write · 7a6a740d
      John Snow 提交于
      For larger pieces of data that won't need to be debugged and
      viewing the hex nibbles is unlikely to be useful, we can encode
      data using base64 instead of encoding each byte as %02x, which
      leads to some space savings and faster reads/writes.
      
      For now, the default is left as hex nibbles in memwrite() and memread().
      For the purposes of making qtest io easier to read and debug, some
      callers may want to specify using the old encoding format for small
      patches of data where the savings from base64 wouldn't be that profound.
      
      memwrite/memread use a data encoding that takes 2x the size of the original
      buffer, but base64 uses "only" (4/3)x, so for larger buffers we can save a
      decent amount of time and space.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1430864578-22072-3-git-send-email-jsnow@redhat.com
      7a6a740d
  9. 29 4月, 2015 2 次提交
    • J
      libqtest: add qmp_async · ba4ed393
      John Snow 提交于
      Add qmp_async, which lets us send QMP commands asynchronously.
      This is useful when we want to send commands that will trigger
      event responses, but we don't know in what order to expect them.
      
      Sometimes the event responses may arrive even before the command
      confirmation will show up, so it is convenient to leave the responses
      in the stream.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1426018503-821-5-git-send-email-jsnow@redhat.com
      ba4ed393
    • J
      libqtest: add qmp_eventwait · 8fe941f7
      John Snow 提交于
      Allow the user to poll until a desired interrupt occurs.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1426018503-821-4-git-send-email-jsnow@redhat.com
      8fe941f7
  10. 31 3月, 2015 2 次提交
  11. 15 10月, 2014 1 次提交
  12. 08 9月, 2014 1 次提交
  13. 16 8月, 2014 1 次提交
  14. 01 4月, 2014 2 次提交
  15. 14 3月, 2014 1 次提交
  16. 13 3月, 2014 1 次提交
    • P
      libqtest: Avoid inline varargs functions · 0100f425
      Peter Maydell 提交于
      Older versions of gcc (eg 4.6) can't handle varargs functions declared
      inline for anything other than completely trivial uses, and complain:
      
      tests/qom-test.c: In function 'qmp': tests/libqtest.h:359:60: sorry,
      unimplemented: function 'qmp' can never be inlined because it uses
      variable argument lists
      
      Avoid this problem by putting the functions into libqtest.c instead
      of using inline definitions in libqtest.h.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NAndreas Färber <afaerber@suse.de>
      0100f425
  17. 07 11月, 2013 2 次提交
  18. 23 8月, 2013 1 次提交
  19. 19 7月, 2013 1 次提交
  20. 18 2月, 2013 3 次提交
  21. 12 2月, 2013 1 次提交
  22. 10 5月, 2012 1 次提交
  23. 30 3月, 2012 1 次提交