1. 02 1月, 2017 9 次提交
    • M
      src: Build libvirt_nss.la iff WITH_NSS · 70b0a8e5
      Michal Privoznik 提交于
      If the nss module is disabled we don't need to build the
      supplementary library for it either.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      70b0a8e5
    • M
      tests: Run nss*test iff WITH_NSS · a94769ce
      Michal Privoznik 提交于
      If the nss module is disabled we shouldn't run the tests that
      include it either.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      a94769ce
    • M
      virt-nss: Introduce more checks before enabling NSS · 09da6610
      Michal Privoznik 提交于
      The plugin depends on more modules than we currently check for,
      i.e. network driver and yajl library.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      09da6610
    • M
      tests: Move test_libraries a bit higher · 9a3dd116
      Michal Privoznik 提交于
      In the Makefile in tests/ we initialize couple of variables like
      test_programs, test_libraries and test_helpers. These variables
      contain all the targets that we need to build in order to run
      the test suite. So we initialize test_programs and test_helpers
      and then conditionally add targets to them depending on what we
      are building with. Then we repeat the same process with
      test_libraries. It makes no sense to have two separate if-endif
      sequences.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      9a3dd116
    • M
      tests: Run virmacmaptest iff WITH_YAJL · 00c49704
      Michal Privoznik 提交于
      Since the internal implementation relies on a json parser being
      available, it make no sense to run this test if there's none
      available.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      00c49704
    • M
      virmacmap: Don't use hash table dataFree callback · 5dc6169b
      Michal Privoznik 提交于
      Due to nature of operations we do over the string list (more
      precisely due to how virStringListRemove() works), it is not the
      best idea to use dataFree callback. Problem is, on MAC address
      remove, the string list remove function modifies the original
      list in place. Then, virHashUpdateEntry() is called which frees
      all the data stored in the list rendering @newMacsList point to
      freed data.
      
      ==16002== Invalid read of size 8
      ==16002==    at 0x50BC083: virFree (viralloc.c:582)
      ==16002==    by 0x513DC39: virStringListFree (virstring.c:251)
      ==16002==    by 0x51089B4: virMacMapHashFree (virmacmap.c:67)
      ==16002==    by 0x50EF30B: virHashAddOrUpdateEntry (virhash.c:352)
      ==16002==    by 0x50EF4FD: virHashUpdateEntry (virhash.c:415)
      ==16002==    by 0x5108BED: virMacMapRemoveLocked (virmacmap.c:129)
      ==16002==    by 0x51092D5: virMacMapRemove (virmacmap.c:346)
      ==16002==    by 0x402F02: testMACRemove (virmacmaptest.c:107)
      ==16002==    by 0x403F15: virTestRun (testutils.c:180)
      ==16002==    by 0x4032C4: mymain (virmacmaptest.c:205)
      ==16002==    by 0x405A3B: virTestMain (testutils.c:992)
      ==16002==    by 0x403D87: main (virmacmaptest.c:237)
      ==16002==  Address 0xdd5a4d0 is 0 bytes inside a block of size 24 free'd
      ==16002==    at 0x4C2AD6F: realloc (vg_replace_malloc.c:693)
      ==16002==    by 0x50BB99B: virReallocN (viralloc.c:245)
      ==16002==    by 0x513DC0B: virStringListRemove (virstring.c:235)
      ==16002==    by 0x5108BA6: virMacMapRemoveLocked (virmacmap.c:124)
      ==16002==    by 0x51092D5: virMacMapRemove (virmacmap.c:346)
      ==16002==    by 0x402F02: testMACRemove (virmacmaptest.c:107)
      ==16002==    by 0x403F15: virTestRun (testutils.c:180)
      ==16002==    by 0x4032C4: mymain (virmacmaptest.c:205)
      ==16002==    by 0x405A3B: virTestMain (testutils.c:992)
      ==16002==    by 0x403D87: main (virmacmaptest.c:237)
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      5dc6169b
    • M
      virmacmap: Fix variable handling · 806582a5
      Michal Privoznik 提交于
      In virMacMapRemoveLocked() we have two variables: @macsList and
      @newMacsList. Obviously, @newMacsList is supposed to hold pointer
      to modified list but in fact it holds pointer to the old list.
      It's confusing.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      806582a5
    • A
      maint: Sync bootstrap after gnulib update · fbd717c3
      Andrea Bolognani 提交于
      7fa7fe22 updated gnulib to the latest upstream commit,
      but forgot to include the corresponding bootstrap changes.
      fbd717c3
    • M
      maint: update to latest gnulib · 7fa7fe22
      Michal Privoznik 提交于
      Required for the copyright year bump to keep 'make syntax-check'
      happy, and also pulls in several portability fixes.
      
      * .gnulib: Update to latest.
      * bootstrap: Resync from upstream.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      7fa7fe22
  2. 25 12月, 2016 1 次提交
  3. 23 12月, 2016 6 次提交
  4. 22 12月, 2016 10 次提交
  5. 21 12月, 2016 14 次提交