binutils Newspaper
OCTOBER 6, 2026
binutils — Proposed — Sentiment 7 / 10

Add strings -n testcase

Adds a test case for the binutils 'strings -n' option.

Pengxu submits a patch to add a test case for the strings -n option in binutils. This option limits the length of displayed symbols. The patch adds a new test to binutils-all/strings.exp and has been verified to pass on the local build.

In the Thread 2 participants
  1. pengxu@kylinos.cn proposer

    Submits a patch adding test cases for the 'strings -n' option, which limits symbol length, to binutils.

    “This patch adds test cases for the strings -n option in binutils-all/strings.exp. The -n option is used to limit the length of displayed symbols, which is default 4.”
  2. Jan Beulich reviewer

    Requests that commit messages include a non-empty description, particularly when the subject line is terse.

    “Please can we have a non-empty description at least in cases where the subject ...”

In Details

This patch introduces a test case for the strings utility in GNU Binutils, specifically targeting the -n option which controls the maximum length of symbols displayed. The addition aims to ensure the correct behavior of this option across various string formats and symbol types.

For Context
strings utility
A standard Unix utility that scans objects files or (other types of files) and prints the printable character sequences that are at least 4 characters long (by default).
binutils-all/strings.exp
A test script file within the Binutils testsuite that specifically exercises the 'strings' command.
Filed Under: binutilsstringstestsuitepatch