From 7d661951ea038cfa121d9c3eb0431efdf0ddb94c Mon Sep 17 00:00:00 2001 From: Sergey Kolosov Date: Fri, 13 Jan 2023 22:20:45 +0100 Subject: [PATCH] CI Tests: updates Regression/bz455360-RHEL4-vfprintf-call-goes-into-recursive to use actual beakerlib functions --- .../runtest.sh | 43 +++++++++++-------- 1 file changed, 24 insertions(+), 19 deletions(-) diff --git a/tests/Regression/bz455360-RHEL4-vfprintf-call-goes-into-recursive/runtest.sh b/tests/Regression/bz455360-RHEL4-vfprintf-call-goes-into-recursive/runtest.sh index 01236c4..ace7e3e 100755 --- a/tests/Regression/bz455360-RHEL4-vfprintf-call-goes-into-recursive/runtest.sh +++ b/tests/Regression/bz455360-RHEL4-vfprintf-call-goes-into-recursive/runtest.sh @@ -26,29 +26,34 @@ # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# 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 - rlAssertRpm $PACKAGE - rlRun "gcc -O0 testcase.c -o tc0" - rlRun "gcc -O2 testcase.c -o tc2" -rlPhaseEnd + rlPhaseStartSetup + rlAssertRpm $PACKAGE + rlRun "TESTTMPDIR=$(mktemp -d)" + rlRun "cp testcase.c $TESTTMPDIR" + rlRun "pushd $TESTTMPDIR" + rlPhaseEnd -rlPhaseStartTest Testing - rlRun "./tc0" - rlAssertNotEquals "Checking for the bug 455360 itself" $? 139 - rlAssertExists "abcd" - rlRun "rm -f abcd" - rlRun "./tc2" - rlAssertNotEquals "Checking for the bug 455360 itself" $? 139 - rlAssertExists "abcd" -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" + rlRun "rm -f abcd" + rlRun "./tc2" + rlAssertNotEquals "Checking for the bug 455360 itself" $? 139 + rlAssertExists "abcd" + rlPhaseEnd -rlPhaseStartCleanup Cleanup - rlRun "rm -f tc0 tc2 abcd" -rlPhaseEnd + rlPhaseStartCleanup Cleanup + rlRun "popd" + rlRun "rm -r $TESTTMPDIR" + rlPhaseEnd +rlJournalPrintText +rlJournalEnd