CI Tests: updates Regression/bz455360-RHEL4-vfprintf-call-goes-into-recursive to use actual beakerlib functions

This commit is contained in:
Sergey Kolosov 2023-01-13 22:20:45 +01:00
parent 353c8e0d93
commit 7d661951ea

View File

@ -26,20 +26,22 @@
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Include rhts environment
rpm -Uvh http://nest.test.redhat.com/mnt/qa/scratch/pmuller/rhtslib/rhtslib.rpm
# Include Beaker environment
. /usr/share/beakerlib/beakerlib.sh || exit 1
PACKAGE="glibc"
rlJournalStart
rlPhaseStartSetup Setup
rlPhaseStartSetup
rlAssertRpm $PACKAGE
rlRun "gcc -O0 testcase.c -o tc0"
rlRun "gcc -O2 testcase.c -o tc2"
rlRun "TESTTMPDIR=$(mktemp -d)"
rlRun "cp testcase.c $TESTTMPDIR"
rlRun "pushd $TESTTMPDIR"
rlPhaseEnd
rlPhaseStartTest Testing
rlRun "gcc -O0 testcase.c -o tc0"
rlRun "gcc -O2 testcase.c -o tc2"
rlRun "./tc0"
rlAssertNotEquals "Checking for the bug 455360 itself" $? 139
rlAssertExists "abcd"
@ -50,5 +52,8 @@ rlPhaseStartTest Testing
rlPhaseEnd
rlPhaseStartCleanup Cleanup
rlRun "rm -f tc0 tc2 abcd"
rlRun "popd"
rlRun "rm -r $TESTTMPDIR"
rlPhaseEnd
rlJournalPrintText
rlJournalEnd