easier way to fix it, WFM on BSD/OS
This commit is contained in:
parent
5198f4c358
commit
47a7d246ca
5
Build.sh
5
Build.sh
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.310 2008/04/01 17:22:53 tg Exp $'
|
||||
srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.311 2008/04/01 17:25:36 tg Exp $'
|
||||
#-
|
||||
# Environment used: CC CFLAGS CPPFLAGS LDFLAGS LIBS NOWARN NROFF TARGET_OS
|
||||
# CPPFLAGS recognised: MKSH_SMALL MKSH_ASSUME_UTF8 MKSH_NOPWNAM MKSH_NOVI
|
||||
|
@ -1236,9 +1236,6 @@ cat >>test.sh <<-EOF
|
|||
perl=perl5
|
||||
\$perl -e print >/dev/null 2>&1 || perl=perl
|
||||
\$perl -e print >/dev/null 2>&1 || exit 1
|
||||
print '\\ufeffprint "moien";' >test.tmp
|
||||
[[ \$(\$perl test.tmp 2>&1) = moien ]] || \\
|
||||
check_categories=\$check_categories,oldish-perl
|
||||
exec \$perl '$srcdir/check.pl' -s '$srcdir/check.t' \\
|
||||
-p '$curdir/mksh' -C \$check_categories \$*$tsts
|
||||
EOF
|
||||
|
|
30
check.t
30
check.t
|
@ -1,4 +1,4 @@
|
|||
# $MirOS: src/bin/mksh/check.t,v 1.168 2008/04/01 17:22:54 tg Exp $
|
||||
# $MirOS: src/bin/mksh/check.t,v 1.169 2008/04/01 17:25:37 tg Exp $
|
||||
# $OpenBSD: bksl-nl.t,v 1.2 2001/01/28 23:04:56 niklas Exp $
|
||||
# $OpenBSD: history.t,v 1.5 2001/01/28 23:04:56 niklas Exp $
|
||||
# $OpenBSD: read.t,v 1.3 2003/03/10 03:48:16 david Exp $
|
||||
|
@ -4283,34 +4283,12 @@ expected-stdout:
|
|||
ohne
|
||||
: mit
|
||||
---
|
||||
name: utf8bom-2a
|
||||
name: utf8bom-2
|
||||
description:
|
||||
Check that we can execute BOM-shebangs
|
||||
XXX if the OS can already execute them, we lose
|
||||
note: cygwin execve(2) doesn't return to us with ENOEXEC, we lose
|
||||
category: pdksh,!os:cygwin,!os:uwin-nt,!oldish-perl
|
||||
env-setup: !FOO=BAR!
|
||||
stdin:
|
||||
print '#!'"$__progname"'\nprint "a=$ENV{FOO}";' >t1
|
||||
print '#!'"$__progname"'\nprint "a=$ENV{FOO}";' >t2
|
||||
print '#!'"$__perlname"'\nprint "a=$ENV{FOO}\n";' >t3
|
||||
print '#!'"$__perlname"'\nprint "a=$ENV{FOO}\n";' >t4
|
||||
chmod +x t?
|
||||
./t1
|
||||
./t2
|
||||
./t3
|
||||
./t4
|
||||
expected-stdout:
|
||||
a=/nonexistant{FOO}
|
||||
a=/nonexistant{FOO}
|
||||
a=BAR
|
||||
a=BAR
|
||||
---
|
||||
name: utf8bom-2b
|
||||
description:
|
||||
Check that we can execute BOM-shebangs
|
||||
XXX if the OS can already execute them, we lose
|
||||
category: pdksh,oldish-perl
|
||||
category: pdksh,!os:cygwin,!os:uwin-nt
|
||||
env-setup: !FOO=BAR!
|
||||
stdin:
|
||||
print '#!'"$__progname"'\nprint "a=$ENV{FOO}";' >t1
|
||||
|
@ -4328,7 +4306,7 @@ expected-stdout:
|
|||
a=BAR
|
||||
a=BAR
|
||||
expected-stderr-pattern:
|
||||
/nrecogni.ed/
|
||||
/(Unrecognized character .... ignored at \..t4 line 1)*/
|
||||
---
|
||||
name: utf8bom-3
|
||||
description:
|
||||
|
|
Loading…
Reference in New Issue