#36 Fix RHBZ#1311352 test for newer Fedora versions
Merged 2 years ago by nickc. Opened 2 years ago by vkadlcik.
Unknown source rawhide  into  rawhide

@@ -10,7 +10,7 @@

  recommend:

  - binutils

  - strace

- - nscd

+ - coreutils

  duration: 15m

  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

@@ -54,7 +54,7 @@

  

          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}"

          done

  
@@ -67,12 +67,12 @@

      rlPhaseEnd

  

      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"

  

-         # Check whether objdump output contains source code snippets

-         # NSCD sources can change in time, but I'm quite sure there'll

-         # always be at least one "int i;"

+         # Check whether objdump output contains source code snippets.

+         # ls sources can change in time, but it's likely there always

+         # will be at least one "int i;".

          rlRun "grep 'int i' out > /dev/null" 0 "Checking for source code snippets in objdump output"

  

          rlLogInfo "$(head -n20 out)"

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

Pull-Request has been merged by nickc

2 years ago

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci