Page MenuHomeFreeBSD

Add simple factor/primes regression tests
ClosedPublic

Authored by ngie on May 27 2023, 4:53 AM.
Tags
None
Referenced Files
F82740062: D40297.diff
Thu, May 2, 5:01 AM
F82732349: D40297.diff
Thu, May 2, 2:30 AM
Unknown Object (File)
Wed, May 1, 12:06 AM
Unknown Object (File)
Tue, Apr 30, 11:36 PM
Unknown Object (File)
Tue, Apr 30, 11:36 PM
Unknown Object (File)
Tue, Apr 30, 8:41 PM
Unknown Object (File)
Mon, Apr 22, 11:35 PM
Unknown Object (File)
Mon, Apr 22, 11:34 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.