mirror of
git://sourceware.org/git/libabigail.git
synced 2025-02-02 23:02:09 +00:00
Fix potential race condition in test-diff-pkg.cc
The output of several tar file tests for abipkgdiff have the same name. This is can be a race condition now that these tests are run in parallel, potentially. This patch fixes the issue by giving each test output file a different name. * tests/test-diff-pkg.cc (in_out_spec): Make the tar format tests output have different names. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
b35b89e7c2
commit
d611e96460
@ -161,7 +161,7 @@ static InOutSpec in_out_specs[] =
|
|||||||
"",
|
"",
|
||||||
"",
|
"",
|
||||||
"data/test-diff-pkg/tarpkg-0-report-0.txt",
|
"data/test-diff-pkg/tarpkg-0-report-0.txt",
|
||||||
"output/test-diff-pkg/tarpkg-0-report-0.txt"
|
"output/test-diff-pkg/tarpkg-0-report-01.txt"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"data/test-diff-pkg/tarpkg-0-dir1.tar.gz",
|
"data/test-diff-pkg/tarpkg-0-dir1.tar.gz",
|
||||||
@ -171,7 +171,7 @@ static InOutSpec in_out_specs[] =
|
|||||||
"",
|
"",
|
||||||
"",
|
"",
|
||||||
"data/test-diff-pkg/tarpkg-0-report-0.txt",
|
"data/test-diff-pkg/tarpkg-0-report-0.txt",
|
||||||
"output/test-diff-pkg/tarpkg-0-report-0.txt"
|
"output/test-diff-pkg/tarpkg-0-report-02.txt"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"data/test-diff-pkg/tarpkg-0-dir1.tar.bz2",
|
"data/test-diff-pkg/tarpkg-0-dir1.tar.bz2",
|
||||||
@ -181,7 +181,7 @@ static InOutSpec in_out_specs[] =
|
|||||||
"",
|
"",
|
||||||
"",
|
"",
|
||||||
"data/test-diff-pkg/tarpkg-0-report-0.txt",
|
"data/test-diff-pkg/tarpkg-0-report-0.txt",
|
||||||
"output/test-diff-pkg/tarpkg-0-report-0.txt"
|
"output/test-diff-pkg/tarpkg-0-report-03.txt"
|
||||||
},
|
},
|
||||||
#endif //WITH_TAR
|
#endif //WITH_TAR
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user