Page MenuHomeFreeBSD

Add simple factor/primes regression tests
ClosedPublic

Authored by ngie on May 27 2023, 4:53 AM.
Tags
None
Referenced Files
F163127654: D40297.id122507.diff
Mon, Jul 20, 8:06 AM
Unknown Object (File)
Sat, Jul 18, 10:37 AM
Unknown Object (File)
Tue, Jul 14, 8:06 PM
Unknown Object (File)
Mon, Jul 13, 6:35 PM
Unknown Object (File)
Sat, Jul 11, 5:00 PM
Unknown Object (File)
Sat, Jul 11, 7:18 AM
Unknown Object (File)
Wed, Jul 8, 7:46 PM
Unknown Object (File)
Wed, Jul 8, 3:31 AM
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.