1. 13 7月, 2016 7 次提交
  2. 12 7月, 2016 29 次提交
  3. 11 7月, 2016 4 次提交
    • T
      qemuhotplugtest: Move domain and device XMLs to different directories · b0b4a35c
      Tomasz Flendrich 提交于
      This way we can safely differentiate what XMLs contain whole domain
      definitions and which contain just devices.  Thanks to that we can
      test the domain XMLs in virschematest again.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      b0b4a35c
    • T
      qemuhotplugtest: Move all XMLs to one directory · ec5dcf2a
      Tomasz Flendrich 提交于
      This makes the search for related XMLs easier, plus they are not used in
      the xml2argv tests anyway.  This also makes future patches cleaner.
      While on that remove unnecessary '-hotplug' from the filenames.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      ec5dcf2a
    • M
      qemuxml2argvmock: Don't leak @netdef->ifname · 1cbb8d4a
      Michal Privoznik 提交于
      In the mock, we have a stub for virNetDevTapCreate(). However,
      the mocked version does not exactly as it's native counterpart.
      The function receives a string, which is an interface name that
      caller would like to have, but it's not guaranteed that they will
      get just that one. If they don't, the function free()-s the one
      passed and returns the new one. Just like the mocked version. But
      what is the mocked version missing is the free().
      
      ==1068== 6 bytes in 1 blocks are definitely lost in loss record 9 of 132
      ==1068==    at 0x4C29F80: malloc (vg_replace_malloc.c:296)
      ==1068==    by 0xDE13356: xmlStrndup (in /usr/lib64/libxml2.so.2.9.4)
      ==1068==    by 0xAE2333E: virXMLPropString (virxml.c:479)
      ==1068==    by 0xAE45975: virDomainNetDefParseXML (domain_conf.c:9038)
      ==1068==    by 0xAE5C0BB: virDomainDefParseXML (domain_conf.c:16734)
      ==1068==    by 0xAE5EB96: virDomainDefParseNode (domain_conf.c:17444)
      ==1068==    by 0xAE5EA05: virDomainDefParse (domain_conf.c:17391)
      ==1068==    by 0xAE5EA93: virDomainDefParseFile (domain_conf.c:17415)
      ==1068==    by 0x433430: testCompareXMLToArgvFiles (qemuxml2argvtest.c:278)
      ==1068==    by 0x433A18: testCompareXMLToArgvHelper (qemuxml2argvtest.c:414)
      ==1068==    by 0x446ED4: virTestRun (testutils.c:179)
      ==1068==    by 0x43A099: mymain (qemuxml2argvtest.c:1016)
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      1cbb8d4a
    • M
      qemuxml2argvtest: Don't leak dummy monitor · 958d6208
      Michal Privoznik 提交于
      It's just test, but why leak it?
      
      ==26971== 20 bytes in 1 blocks are definitely lost in loss record 623 of 704
      ==26971==    at 0x4C29F80: malloc (vg_replace_malloc.c:296)
      ==26971==    by 0xE560447: vasprintf (vasprintf.c:76)
      ==26971==    by 0xAE0DEE2: virVasprintfInternal (virstring.c:480)
      ==26971==    by 0xAE0DFF7: virAsprintfInternal (virstring.c:501)
      ==26971==    by 0x4751F3: qemuProcessPrepareMonitorChr (qemu_process.c:2651)
      ==26971==    by 0x4334B1: testCompareXMLToArgvFiles (qemuxml2argvtest.c:297)
      ==26971==    by 0x4339AC: testCompareXMLToArgvHelper (qemuxml2argvtest.c:413)
      ==26971==    by 0x446E7A: virTestRun (testutils.c:179)
      ==26971==    by 0x445D33: mymain (qemuxml2argvtest.c:2029)
      ==26971==    by 0x44886F: virTestMain (testutils.c:969)
      ==26971==    by 0x445D9B: main (qemuxml2argvtest.c:2036)
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      958d6208