[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#60339: tests/cp/proc-short-read.sh may fail due to architecture / ca

From: Zach van Rijn
Subject: bug#60339: tests/cp/proc-short-read.sh may fail due to architecture / case sensitivity assumption
Date: Mon, 26 Dec 2022 08:38:29 -0600
User-agent: Evolution 3.36.5-0ubuntu1

The test tests/cp/proc-short-read.sh attempts to remove common
differences in the output of /proc/cpuinfo:

    # adjust varying parts
    sed '/MHz/d; /bogomips/d;' 1 > proc.cp || framework_failure_
    sed '/MHz/d; /bogomips/d;' 2 > proc.cat || framework_failure_

However the string "bogomips" may differ in capitalization across
different architectures [1].

Testing on a big.LITTLE system uncovered this assumption.

    Linux DietPi 5.4.225-odroidxu4 #22.11.1 SMP PREEMPT Wed Nov
    30 10:55:16 UTC 2022 armv7l GNU/Linux

Still present as of 9581c4b59d2e11cd090613cd300a833b4441d2b5.

Proposed patch attached, which aims to be minimally invasive.


[1]: https://git.adelielinux.org/adelie/packages/-/issues/943

Attachment: tests-cp-proc-short-read.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]