1. 18 1月, 2017 3 次提交
  2. 06 10月, 2016 1 次提交
  3. 09 6月, 2016 3 次提交
  4. 11 3月, 2015 1 次提交
    • P
      test: qemu: Fix qemu monitor test utils to allow testing HMP · fc471345
      Peter Krempa 提交于
      qemu HMP commands sent by libvirt are terminated just by a '\r'. The
      fake monitor used in tests wasn't prepared to handle this and the
      communication would hang on an attempt to do a HMP conversation.
      
      Add a special case for handling commands separated by \r in case HMP is
      used.
      fc471345
  5. 03 6月, 2014 1 次提交
    • P
      tests: monitor: json: Fix error message when returning json in json · 9046f910
      Peter Krempa 提交于
      The qemu JSON monitor test allows to test also expected command
      arguments. As the error from the monitor simulator is returned as a
      simulated qemu error (in JSON) all other JSON contained in the error
      message needs to be escaped. This will happen if the monitor command
      under test receives a JSON array as an argument.
      
      This will improve the error message from:
      libvirt:  error : internal error: cannot parse json { "error":  { "desc":
      "Invalid value of argument 'keys' of command 'send-key': expected 'ble'
      got '[{"type":"number","data":43},{"type":"number","data":26},
      {"type":"number","data":46},{"type":"number","data":32}]'",
      "class": "UnexpectedCommand" } }: lexical error: invalid string in json text.
      
      To:
      libvirt: QEMU Driver error : internal error: unable to execute QEMU
      command 'send-key': Invalid value of argument 'keys' of command
      'send-key': expected 'ble' got '[{"type":"number","data":43},
      {"type":"number","data":26},{"type":"number","data":46},
      {"type":"number","data":32}]'
      
      This improvement will not have any effect on tests executing as
      expected, but it will help test development.
      9046f910
  6. 25 3月, 2014 1 次提交
  7. 18 3月, 2014 1 次提交
  8. 21 10月, 2013 1 次提交
  9. 03 10月, 2013 1 次提交
    • M
      qemuMonitorTestFree: Join worker thread · 2d670cd4
      Michal Privoznik 提交于
      Join the worker thread no matter if it is running or zombie already.
      With current implementation the thread is joined iff @running is true.
      However, when worker executes the last line, @running is set to false.
      Hence qemuMonitorTestFree() won't join it (and free resources) even
      though we can clearly see worker has run (nobody else sets @running =
      false).
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      2d670cd4
  10. 01 10月, 2013 2 次提交
  11. 26 9月, 2013 3 次提交
  12. 26 8月, 2013 4 次提交
  13. 02 8月, 2013 1 次提交
  14. 31 7月, 2013 10 次提交
  15. 10 7月, 2013 1 次提交
  16. 21 5月, 2013 1 次提交
  17. 14 5月, 2013 1 次提交
    • E
      qemu: use bool in monitor struct · 764bb5e5
      Eric Blake 提交于
      Follows on the heels of other bool cleanups, such as commit 93002b98.
      
      * src/qemu/qemu_monitor.h (qemuMonitorOpen, qemuMonitorOpenFD):
      Update json parameter type.
      * src/qemu/qemu_monitor.c (qemuMonitorOpen, qemuMonitorOpenFD):
      Likewise.
      (_qemuMonitor): Adjust field type.
      * src/qemu/qemu_domain.h (_qemuDomainObjPrivate): Likewise.
      * src/qemu/qemu_domain.c (qemuDomainObjPrivateXMLParse): Adjust
      client.
      * src/qemu/qemu_process.c (qemuProcessStart): Likewise.
      * tests/qemumonitortestutils.c (qemuMonitorTestNew): Likewise.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      764bb5e5
  18. 10 5月, 2013 1 次提交
  19. 02 5月, 2013 1 次提交
    • M
      virutil: Move string related functions to virstring.c · 7c9a2d88
      Michal Privoznik 提交于
      The source code base needs to be adapted as well. Some files
      include virutil.h just for the string related functions (here,
      the include is substituted to match the new file), some include
      virutil.h without any need (here, the include is removed), and
      some require both.
      7c9a2d88
  20. 20 4月, 2013 1 次提交
    • E
      docs: fix usage of 'onto' · 1bf25ba2
      Eric Blake 提交于
      http://www.uhv.edu/ac/newsletters/writing/grammartip2009.07.01.htm
      (and several other sites) give hints that 'onto' is best used if
      you can also add 'up' just before it and still make sense. In many
      cases in the code base, we really want the two-word form, or even
      a simplification to just 'on' or 'to'.
      
      * docs/hacking.html.in: Use correct 'on to'.
      * python/libvirt-override.c: Likewise.
      * src/lxc/lxc_controller.c: Likewise.
      * src/util/virpci.c: Likewise.
      * daemon/THREADS.txt: Use simpler 'on'.
      * docs/formatdomain.html.in: Better usage.
      * docs/internals/rpc.html.in: Likewise.
      * src/conf/domain_event.c: Likewise.
      * src/rpc/virnetclient.c: Likewise.
      * tests/qemumonitortestutils.c: Likewise.
      * HACKING: Regenerate.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      1bf25ba2
  21. 05 4月, 2013 1 次提交