diff options
author | Maxin B. John <maxin.john@intel.com> | 2017-03-24 17:03:20 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-27 08:15:06 +0100 |
commit | 867c2dcbd76b7cfadf03e5237b19d5cbd892dd0d (patch) | |
tree | e768c0f3aa12dcd9212d5bb5bf7b5b8f77df8971 /meta/recipes-devtools/valgrind | |
parent | d2278fe7b39998bcf388e996cea9708c50a7aff4 (diff) | |
download | poky-867c2dcbd76b7cfadf03e5237b19d5cbd892dd0d.tar.gz |
valgrind: correct the comparison logic in vg_regtest
do_diffs in the vg_regtest script compares the actual test output
against the expected test output and returns 0 if it matches.
Previous upgrade modified the return value of do_diffs() and that
resulted in ptest failures.
[YOCTO #8471]
(From OE-Core rev: fa5f7b5090468da0ed1e30160e68362c97350c47)
Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/valgrind')
-rw-r--r-- | meta/recipes-devtools/valgrind/valgrind/0005-Modify-vg_test-wrapper-to-support-PTEST-formats.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-devtools/valgrind/valgrind/0005-Modify-vg_test-wrapper-to-support-PTEST-formats.patch b/meta/recipes-devtools/valgrind/valgrind/0005-Modify-vg_test-wrapper-to-support-PTEST-formats.patch index f5ac989fbf..7985308e41 100644 --- a/meta/recipes-devtools/valgrind/valgrind/0005-Modify-vg_test-wrapper-to-support-PTEST-formats.patch +++ b/meta/recipes-devtools/valgrind/valgrind/0005-Modify-vg_test-wrapper-to-support-PTEST-formats.patch | |||
@@ -100,7 +100,7 @@ index a441f42..cb05b52 100755 | |||
100 | unlink("$name.$mid.out"); | 100 | unlink("$name.$mid.out"); |
101 | unlink(<$name.$mid.diff*>); | 101 | unlink(<$name.$mid.diff*>); |
102 | - return; | 102 | - return; |
103 | + return 1; | 103 | + return 0; |
104 | } | 104 | } |
105 | } | 105 | } |
106 | } | 106 | } |
@@ -113,7 +113,7 @@ index a441f42..cb05b52 100755 | |||
113 | print "Failure encountered, stopping to loop\n"; | 113 | print "Failure encountered, stopping to loop\n"; |
114 | exit 1 | 114 | exit 1 |
115 | } | 115 | } |
116 | + return 0; | 116 | + return 1; |
117 | } | 117 | } |
118 | 118 | ||
119 | sub do_one_test($$) | 119 | sub do_one_test($$) |