Fix RHBZ#1311352 test for newer Fedora versions
The test used nscd which has been obsoleted by Fedora [1]. Fortunately that package was just an example, any package using the same debuginfo layout will do. Let's use coreutils instead. [1] https://fedoraproject.org/wiki/Changes/RemoveNSCD
This commit is contained in:
parent
ea9a413173
commit
10575a5d52
@ -10,7 +10,7 @@ framework: beakerlib
|
|||||||
recommend:
|
recommend:
|
||||||
- binutils
|
- binutils
|
||||||
- strace
|
- strace
|
||||||
- nscd
|
- coreutils
|
||||||
duration: 15m
|
duration: 15m
|
||||||
extra-summary: /tools/binutils/Regression/bz1311352-objdump-S-disassembly-code-doesn-t-follow
|
extra-summary: /tools/binutils/Regression/bz1311352-objdump-S-disassembly-code-doesn-t-follow
|
||||||
extra-task: /tools/binutils/Regression/bz1311352-objdump-S-disassembly-code-doesn-t-follow
|
extra-task: /tools/binutils/Regression/bz1311352-objdump-S-disassembly-code-doesn-t-follow
|
||||||
|
@ -54,7 +54,7 @@ rlJournalStart
|
|||||||
|
|
||||||
rlLogInfo "(without skipped) COLLECTIONS=$COLLECTIONS"
|
rlLogInfo "(without skipped) COLLECTIONS=$COLLECTIONS"
|
||||||
|
|
||||||
for i in glibc nscd; do
|
for i in glibc coreutils; do
|
||||||
rpm -q ${i}-debuginfo.${ARCH} &>/dev/null || rlRun "debuginfo-install -y ${i}.${ARCH}"
|
rpm -q ${i}-debuginfo.${ARCH} &>/dev/null || rlRun "debuginfo-install -y ${i}.${ARCH}"
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -67,12 +67,12 @@ rlJournalStart
|
|||||||
rlPhaseEnd
|
rlPhaseEnd
|
||||||
|
|
||||||
rlPhaseStartTest
|
rlPhaseStartTest
|
||||||
rlRun "strace -e trace=open,openat -o strace.out $OBJDUMP -drS /usr/sbin/nscd &> out"
|
rlRun "strace -e trace=open,openat -o strace.out $OBJDUMP -drS /usr/bin/ls &> out"
|
||||||
rlRun "grep '/usr/lib/debug' strace.out"
|
rlRun "grep '/usr/lib/debug' strace.out"
|
||||||
|
|
||||||
# Check whether objdump output contains source code snippets
|
# Check whether objdump output contains source code snippets.
|
||||||
# NSCD sources can change in time, but I'm quite sure there'll
|
# ls sources can change in time, but it's likely there always
|
||||||
# always be at least one "int i;"
|
# will be at least one "int i;".
|
||||||
rlRun "grep 'int i' out > /dev/null" 0 "Checking for source code snippets in objdump output"
|
rlRun "grep 'int i' out > /dev/null" 0 "Checking for source code snippets in objdump output"
|
||||||
|
|
||||||
rlLogInfo "$(head -n20 out)"
|
rlLogInfo "$(head -n20 out)"
|
||||||
|
Loading…
Reference in New Issue
Block a user