Page MenuHomeFreeBSD

Add simple factor/primes regression tests
ClosedPublic

Authored by ngie on May 27 2023, 4:53 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 10, 7:21 PM
Unknown Object (File)
Fri, Nov 28, 12:51 AM
Unknown Object (File)
Tue, Nov 25, 1:22 PM
Unknown Object (File)
Fri, Nov 14, 3:20 AM
Unknown Object (File)
Nov 12 2025, 9:54 PM
Unknown Object (File)
Nov 12 2025, 11:17 AM
Unknown Object (File)
Nov 10 2025, 1:40 AM
Unknown Object (File)
Nov 6 2025, 8:47 PM
Subscribers

Details

Summary

This will help ensure that the change following this
one to support OpenSSL 3 is sane.

MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ngie requested review of this revision.May 27 2023, 4:53 AM
ngie added a reviewer: tests.
usr.bin/factor/tests/factor_tests.sh
6

"All rights reserved." has been removed from our standard copyright template. It's unnecessary (but causes no harm if it's there).

36

it seems like factor should reject non-integer args instead

This revision is now accepted and ready to land.May 27 2023, 4:21 PM

anyhow, I think it's reasonable to commit this version and update if/when we change factor to disallow non-integer args

usr.bin/factor/tests/factor_tests.sh
36

Agreed. The fact that factor/primes support non-base 10 values, e.g., a, z, etc, is unexpected/undesirable.

This revision was automatically updated to reflect the committed changes.