]> sourceware.org Git - libabigail.git/commit
Move test-read-dwarf.cc to abigail::workers
authorDodji Seketeli <dodji@redhat.com>
Wed, 1 Mar 2017 13:13:39 +0000 (14:13 +0100)
committerDodji Seketeli <dodji@redhat.com>
Wed, 1 Mar 2017 13:34:58 +0000 (14:34 +0100)
commit0ebb20c6c226a18bfa35015e6754df46c6f5574f
tree8490ec2c5f70ba20c8b9e3559a53ff3407b1fbc2
parent474cf47cd16aa63988c7b53e422ab0cc8fff57c7
Move test-read-dwarf.cc to abigail::workers

Moving this test away from using pthreads directly to use
abigail::workers.

This patch also updates the valgrind suppression file to suppress some
Helgrind false positives.  Those are due to:
  - libstdc++ apparently having some benign data races when emitting
  data to ostream.  This seems related to some facet manipulation that
  happen at that point.
  - some benign data race in some elfutils functions.

* tests/test-read-dwarf.cc (iospec, spec_lock, write_lock)
(out_abi_base, in_elf_base, in_abi_base): Remove these global
variables.
(handle_in_out_spec): Remove this.
(struct test_task): Write this task that does what
handle_in_out_spec was doing.
(test_task_sptr): Define new typedef.
(main): Remove the pthreads artifacts.  Use the new test_task type
along with the abigail::workers interface.
* tests/test-valgrind-suppressions.supp: Add more helgrind
suppressions for ostream writting false positives.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
tests/test-read-dwarf.cc
tests/test-valgrind-suppressions.supp
This page took 0.034308 seconds and 5 git commands to generate.