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)
Fri, Jan 24, 4:01 AM
Unknown Object (File)
Dec 1 2024, 12:17 PM
Unknown Object (File)
Nov 20 2024, 5:44 AM
Unknown Object (File)
Oct 23 2024, 10:07 AM
Unknown Object (File)
Oct 21 2024, 2:16 AM
Unknown Object (File)
Oct 6 2024, 2:14 PM
Unknown Object (File)
Oct 4 2024, 11:34 PM
Unknown Object (File)
Oct 4 2024, 2: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 Skipped
Unit
Tests Skipped
Build Status
Buildable 51731
Build 48622: arc lint + arc unit

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
5

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

35

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
35

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.