The NetBSD Project

CVS log for src/tests/bin/sh/t_input.sh

[BACK] Up to [cvs.NetBSD.org] / src / tests / bin / sh

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon Oct 14 12:26:28 2024 UTC (8 weeks, 1 day ago) by kre
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +3 -1 lines

This test just tested that nul chars in shell input were silently
ignored.   Since we no longer do that, the test is kind of pointless.
But rather than delete it, just mark it as "expected fail" for now,
until it is clear that the changed nul behaviour is to remain.
Then the test can be changed to validate that nul chars cause errors...

Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Feb 16 09:46:24 2021 UTC (3 years, 9 months ago) by kre
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
PR bin/55979

Add a sh ATF test to demonstrate a bug in the way that \0 characters
are dropped from scripts.   This test will eventually be extended to
test other potential sh script input related issues.

When initially committed, this test should fail.  It should succeed
when the fix for the PR is committed (soon).

Nb: this tests only the \0 related issues from the PR, the MSAN
detected uninitialised variable (struct field) can only be detected
by MSAN, as it has no visible impact on the operation of the shell
when running on any real (or even emulated) hardware.
(It will, however, also be fixed).

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>