1. 12 1月, 2017 1 次提交
  2. 15 11月, 2016 1 次提交
  3. 14 10月, 2016 1 次提交
  4. 23 9月, 2016 1 次提交
  5. 08 9月, 2016 1 次提交
  6. 16 6月, 2016 1 次提交
  7. 07 6月, 2016 1 次提交
  8. 16 2月, 2016 1 次提交
  9. 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
  10. 26 11月, 2015 1 次提交
  11. 25 10月, 2015 1 次提交
  12. 20 10月, 2015 1 次提交
  13. 09 10月, 2015 2 次提交
  14. 23 5月, 2015 3 次提交
    • J
      qtest: pre-buffer hex nibs · 5560b85a
      John Snow 提交于
      Instead of converting each byte one-at-a-time and then sending each byte
      over the wire, use sprintf() to pre-compute all of the hex nibs into a
      single buffer, then send the entire buffer all at once.
      
      This gives a moderate speed boost to memread() and memwrite() functions.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      Message-id: 1431021095-7558-2-git-send-email-jsnow@redhat.com
      5560b85a
    • J
      qtest: add memset to qtest protocol · 4d007963
      John Snow 提交于
      Previously, memset was just a frontend to write() and only
      stupidly sent the pattern many times across the wire.
      
      Let's not discuss who stupidly wrote it like that in the first place.
      (Hint: It was me.)
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1430864578-22072-4-git-send-email-jsnow@redhat.com
      4d007963
    • 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
  15. 29 4月, 2015 3 次提交
  16. 31 3月, 2015 1 次提交
  17. 08 9月, 2014 1 次提交
  18. 28 8月, 2014 1 次提交
  19. 16 8月, 2014 4 次提交
  20. 01 7月, 2014 1 次提交
    • P
      libqtest: escape strings in QMP commands, fix leak · 563890c7
      Paolo Bonzini 提交于
      libqtest is using g_strdup_printf to format QMP commands, but
      this does not work if the argument strings need to be escaped.
      Instead, use the fancy %-formatting functionality of QObject.
      The only change required in tests is that strings have to be
      formatted as %s, not '%s' or \"%s\".  Luckily this usage of
      parameterized QMP commands is not that frequent.
      
      The leak is in socket_sendf.  Since we are extracting the send
      loop to a new function, fix it now.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      563890c7
  21. 06 5月, 2014 3 次提交
  22. 01 4月, 2014 3 次提交
  23. 14 3月, 2014 1 次提交
  24. 13 3月, 2014 2 次提交
  25. 19 2月, 2014 3 次提交