1
0
mirror of https://github.com/openbsd/src.git synced 2024-12-21 23:18:00 -08:00
openbsd-src/regress/bin
schwarze 325be88392 Delete a test_ps() call that does not actually test
what it was intended to test.

The intention was to test that src/bin/ps/utf8.c handles embedded NUL bytes
correctly, just as the other tests in the same group test the handling of
various other non-printable characters.  But testing that does not work
for multiple reasons.  Neither does the shell pass the NUL byte to the
called test program as intended, nor can argv[] in a C program contain
a NUL byte in the middle of an argument, simply because in the C language,
a string is defined to end at the first NUL byte.  On top of all that,
even the function mbswprint() that was supposed to be tested terminates
the processing of the multi-byte input string as soon as it encounters
a NUL byte (all of which is correct behaviour).

So this particular subtest was totally bogus and only worked by accident,
for reasons completely unrelated to the intended purpose.  I don't think
the test needs to be replaced by anything else.  NUL bytes in the middle
of a program argument just aren't a thing in the first place.

Thanks to deraadt@ for asking what the purpose of this test_ps() call was.
2024-09-10 19:46:01 +00:00
..
cat Some new tests related to bin/cat.c rev. 1.25, 2016-07-05 20:01:47 +00:00
chmod Make test more verbose to see commands and error messages in output. 2021-07-06 19:48:05 +00:00
csh regress tests shouldn't set or modify MALLOC_OPTIONS unless they're actually very specific behaviour 2021-09-02 07:14:15 +00:00
ed move ed/tests files to regress/bin/ed, where they are used 2024-08-19 01:43:23 +00:00
expr a few more edge case tests, aiming for complete coverage 2018-03-31 15:52:31 +00:00
ksh Add new failing read/signal test 2022-10-16 12:34:13 +00:00
ln Use regress framework. 2020-12-18 18:05:29 +00:00
md5 Add test suites for SHA-224 and SHA-384. 2015-01-09 03:32:58 +00:00
pax
ps Delete a test_ps() call that does not actually test 2024-09-10 19:46:01 +00:00
test Support integers of arbitrary length. 2018-04-02 06:47:43 +00:00
Makefile Fix overflows while handling 64 bit integers. 2018-03-31 14:50:56 +00:00