1. 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
  2. 01 4月, 2014 3 次提交
  3. 18 2月, 2014 1 次提交
  4. 19 11月, 2013 1 次提交
    • A
      qtest: Use -display none by default · 2ad645d2
      Andreas Färber 提交于
      This avoids each test needing to add it to suppress windows popping up.
      
      [Commit 7ceeedd0 ("blockdev-test: add
      test case for drive_add duplicate IDs") and commit
      43cd2098 ("qdev-monitor-test: add
      device_add leak test cases") added qtest tests without specifying
      -display none.
      
      As a result, "make check" now tries to use graphics (GTK or SDL).  Since
      graphics are not used by the test and inappropriate for headless "make
      check" runs, add the missing -display none.
      
      This fixes "make check" in the QEMU buildbot.
      -- Stefan]
      Signed-off-by: NAndreas Färber <afaerber@suse.de>
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      2ad645d2
  5. 04 5月, 2013 1 次提交
  6. 09 4月, 2013 1 次提交
    • P
      hw: move headers to include/ · 0d09e41a
      Paolo Bonzini 提交于
      Many of these should be cleaned up with proper qdev-/QOM-ification.
      Right now there are many catch-all headers in include/hw/ARCH depending
      on cpu.h, and this makes it necessary to compile these files per-target.
      However, fixing this does not belong in these patches.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      0d09e41a
  7. 17 1月, 2013 1 次提交