Add test for RHEL-74127

This commit is contained in:
František Hrdina 2025-01-15 17:27:02 +01:00
commit ab046a1de4
2 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,20 @@
summary: glob2regpat returns bad result on s390x
description: According to upstream tests, the glob2regpat('**') function should return .*. However, on the s390x architecture, the function unexpectedly returns $, which does not align with the expected behavior from the test.
contact: Frantisek Hrdina <fhrdina@redhat.com>
component:
- vim
test: ./test.sh
framework: beakerlib
recommend:
- vim
duration: 5m
enabled: true
tag:
- Tier3
tier: '3'
link:
- verifies: https://issues.redhat.com/browse/RHEL-74127
adjust:
- enabled: false
when: distro < rhel-7
continue: false

View file

@ -0,0 +1,21 @@
#!/bin/bash
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
. /usr/share/beakerlib/beakerlib.sh || exit 1
rlJournalStart
rlPhaseStartSetup
rlAssertRpm vim-enhanced
rlRun "tmp=\$(mktemp -d)" 0 "Create tmp directory"
rlRun "pushd $tmp"
rlPhaseEnd
rlPhaseStartTest
rlRun "vim -E -s -c \"redir! > /dev/stdout\" -c \"silent! echo glob2regpat('**')\" -c \"redir END\" -c \"qa\" &> vim.log" 0 "Run glob2regpat"
rlAssertGrep ".*" vim.log
rlPhaseEnd
rlPhaseStartCleanup
rlRun "popd"
rlRun "rm -r $tmp" 0 "Remove tmp directory"
rlPhaseEnd
rlJournalEnd