summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-08-13 16:21:45 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-08-13 16:21:45 +0000
commita3b3a725123756b5ec0b93cd7b5d09df4c2baf86 (patch)
treeddaf10ae2aeb2844e310cfcb292ffb9ffccb7868 /t
parent69f2e79da25b5a49598cf5c7f87472a2f9d99f7b (diff)
downloadperl-a3b3a725123756b5ec0b93cd7b5d09df4c2baf86.tar.gz
Upgrade to CGI 2.71, from Lincoln Stein.
p4raw-id: //depot/perl@6611
Diffstat (limited to 't')
-rwxr-xr-xt/lib/cgi-function.t9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/lib/cgi-function.t b/t/lib/cgi-function.t
index 46d077bc7f..234bb9effa 100755
--- a/t/lib/cgi-function.t
+++ b/t/lib/cgi-function.t
@@ -27,6 +27,15 @@ sub test {
my $CRLF = "\015\012";
+# A peculiarity of sending "\n" through MBX|Socket|web-server on VMS
+# is that a CR character gets inserted automatically in the web server
+# case but not internal to perl's double quoted strings "\n". This
+# test would need to be modified to use the "\015\012" on VMS if it
+# were actually run through a web server.
+# Thanks to Peter Prymmer for this
+
+if ($^O eq 'VMS') { $CRLF = "\n"; }
+
# Set up a CGI environment
$ENV{REQUEST_METHOD}='GET';
$ENV{QUERY_STRING} ='game=chess&game=checkers&weather=dull';