Skip to content

factor: emit GNU 9.11 'is not a valid positive integer' for stdin input#12137

Merged
cakebaker merged 2 commits into
uutils:mainfrom
sylvestre:fix/factor-9.11-error-message
May 4, 2026
Merged

factor: emit GNU 9.11 'is not a valid positive integer' for stdin input#12137
cakebaker merged 2 commits into
uutils:mainfrom
sylvestre:fix/factor-9.11-error-message

Conversation

@sylvestre
Copy link
Copy Markdown
Contributor

Command-line arguments keep the historical 'warning: ...: invalid digit found in string' wording so 'tests/factor/factor.pl' cont and nul4 both pass.

GNU's factor.c routes both stdin and command-line input through the same
print_factors() and reports invalid input as
  factor: 'X' is not a valid positive integer
Match that wording exactly so the new GNU 9.11 'nul4' test passes and
the 'cont' test no longer needs the warning/invalid-digit hunk in
tests_factor_factor.pl.patch.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 3, 2026

GNU testsuite comparison:

GNU test failed: tests/misc/io-errors. tests/misc/io-errors is passing on 'main'. Maybe you have to rebase?
Skip an intermittent issue tests/cut/bounded-memory (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/tail/follow-name (fails in this run but passes in the 'main' branch)
Congrats! The gnu test tests/factor/factor is no longer failing!
Note: The gnu test tests/dd/no-allocate is now being skipped but was previously passing.

@sylvestre sylvestre force-pushed the fix/factor-9.11-error-message branch from 27cd7e7 to 0425b96 Compare May 3, 2026 19:41
@sylvestre sylvestre marked this pull request as ready for review May 3, 2026 19:55
@cakebaker cakebaker merged commit b2c4e0c into uutils:main May 4, 2026
169 of 170 checks passed
@cakebaker
Copy link
Copy Markdown
Contributor

Congrats! The gnu test tests/factor/factor is no longer failing!

Great :)

@sylvestre sylvestre deleted the fix/factor-9.11-error-message branch May 4, 2026 07:41
nonontb pushed a commit to nonontb/coreutils that referenced this pull request May 28, 2026
…ut (uutils#12137)

* factor: emit GNU's 'X is not a valid positive integer' wording

GNU's factor.c routes both stdin and command-line input through the same
print_factors() and reports invalid input as
  factor: 'X' is not a valid positive integer
Match that wording exactly so the new GNU 9.11 'nul4' test passes and
the 'cont' test no longer needs the warning/invalid-digit hunk in
tests_factor_factor.pl.patch.

* Add 'cmdline' to spell-checker ignore list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants