diff options
Diffstat (limited to 'meta/recipes-devtools/elfutils/elfutils-0.168/debian/testsuite-ignore-elflint.diff')
-rw-r--r-- | meta/recipes-devtools/elfutils/elfutils-0.168/debian/testsuite-ignore-elflint.diff | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/meta/recipes-devtools/elfutils/elfutils-0.168/debian/testsuite-ignore-elflint.diff b/meta/recipes-devtools/elfutils/elfutils-0.168/debian/testsuite-ignore-elflint.diff deleted file mode 100644 index 3df35768b7..0000000000 --- a/meta/recipes-devtools/elfutils/elfutils-0.168/debian/testsuite-ignore-elflint.diff +++ /dev/null | |||
@@ -1,42 +0,0 @@ | |||
1 | On many architectures this test fails because binaries/libs produced by | ||
2 | binutils don't pass elflint. However elfutils shouldn't FTBFS because of this. | ||
3 | |||
4 | So we run the tests on all archs to see what breaks, but if it breaks we ignore | ||
5 | the result (exitcode 77 means: this test was skipped). | ||
6 | |||
7 | Upstream-Status: Backport [from debian] | ||
8 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
9 | |||
10 | Index: b/tests/run-elflint-self.sh | ||
11 | =================================================================== | ||
12 | --- a/tests/run-elflint-self.sh | ||
13 | +++ b/tests/run-elflint-self.sh | ||
14 | @@ -18,4 +18,4 @@ | ||
15 | |||
16 | . $srcdir/test-subr.sh | ||
17 | |||
18 | -testrun_on_self ${abs_top_builddir}/src/elflint --quiet --gnu-ld | ||
19 | +testrun_on_self_skip ${abs_top_builddir}/src/elflint --quiet --gnu-ld | ||
20 | Index: b/tests/test-subr.sh | ||
21 | =================================================================== | ||
22 | --- a/tests/test-subr.sh | ||
23 | +++ b/tests/test-subr.sh | ||
24 | @@ -152,3 +152,18 @@ testrun_on_self_quiet() | ||
25 | # Only exit if something failed | ||
26 | if test $exit_status != 0; then exit $exit_status; fi | ||
27 | } | ||
28 | + | ||
29 | +# Same as testrun_on_self(), but skip on failure. | ||
30 | +testrun_on_self_skip() | ||
31 | +{ | ||
32 | + exit_status=0 | ||
33 | + | ||
34 | + for file in $self_test_files; do | ||
35 | + testrun $* $file \ | ||
36 | + || { echo "*** failure in $* $file"; exit_status=77; } | ||
37 | + done | ||
38 | + | ||
39 | + # Only exit if something failed | ||
40 | + if test $exit_status != 0; then exit $exit_status; fi | ||
41 | +} | ||
42 | + | ||