Skip to content

Commit 86d3453

Browse files
committed
Modifed existing code to work on ubuntu environment.
Updated the wrapper-script to ignore the warnings in stderr, because of which the tests are failing on Ubuntu environment. Signed-off-by: Rajashree Rajendran <[email protected]>
1 parent 1aee2dc commit 86d3453

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

linux-tools/acl/acl.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,10 @@ function runtest()
7979
#$TESTDIR/run $cmd >$stdout 2>$stderr
8080
cd $TESTDIR
8181
./run $cmd >$stdout 2>$stderr
82-
tc_fail_if_bad $? "unexpected response" || return
82+
RC=$?
83+
[ $RC -eq 0 ] && tc_ignore_warnings "Unescaped left brace in regex is deprecated, passed through"
84+
85+
tc_fail_if_bad $RC "unexpected response" || return
8386
cd ..
8487
set $(cat $stdout | grep "passed, 0 failed)" | wc -l)
8588
[ $1 -eq 1 ]

linux-tools/gawk/gawk.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,11 @@ function runtest()
114114
tc_register "$tst"
115115

116116
srcdir=. PATH_SEPARATOR=: make -f Makefile.am $tst >$stdout 2>$stderr
117-
tc_pass_or_fail $?
117+
RC=$?
118+
if [ $tst = "fnamedat" ] || [ $tst = "fnarray" ] || [ $tst = "fnarray2" ] || [ $tst = "fnarydel" ] || [ $tst = "fnasgnm" ] || [ $tst = "fnparydl" ] || [ $tst = "funsmnam" ] || [ $tst = "gsubasgn" ] || [ $tst = "parseme" ] || [ $tst = "badargs" ] || [ $tst = "match2" ] && [ $RC -eq 0 ]; then
119+
tc_ignore_warnings "make:"
120+
fi
121+
tc_pass_or_fail $RC
118122
rm -f _$tst
119123
}
120124

linux-tools/libtool/libtool.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ function test02(){
104104
let TST_TOTAL=$TST_TOTAL+1
105105
tc_register "libtool: linking library: foo.lo, hello.lo --> libhello.la"
106106
$LIBTOOL --mode=link --tag=CC $GCC -g -O -o libhello.la foo.lo hello.lo -rpath $TCTMP/libs -lm >$stdout 2>$stderr
107-
tc_pass_or_fail $? "linking library libhello.la failed"
107+
RC=$?
108+
[ $RC -eq 0 ] && tc_ignore_warnings "ar:"
109+
tc_pass_or_fail $RC "linking library libhello.la failed"
108110
}
109111

110112
#

linux-tools/libxml2/libxml2.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ function TC_libxml2()
5555
if [ $? == 1 ]; then
5656
cat /dev/null > $stderr
5757
fi
58+
[ $? -eq 0 ] && tc_ignore_multiple_warnings "Missing result file result/errors/"
5859
tc_pass_or_fail $? "libxml2 runtest failure"
5960
}
6061

0 commit comments

Comments
 (0)