| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
since Lookup() treats its argument as NUL or '=' terminated.
Previously environment variable names longer than the size of the
buffer would result in a buffer overflow.
|
|
|
|
|
|
|
| |
and provide a makefile option of the same name to control it. It is set to
'define' by default, but can be commented out or set to 'undef' in the
usual manner to switch it off and return to the legacy default behaviour
of including '.' at the end of @INC.
|
|
|
|
|
|
|
|
| |
Previously the Win32 crypt implementation() would access the first
and second characters of the salt, even if the salt was zero length.
Add validation that will detect both a short salt and invalid
characters in the salt.
|
|
|
|
|
|
|
|
|
|
| |
This is a potential security issue, and while we'd need a deprecation
cycle to remove it from system(), there hasn't been a production
release of perl with list pipe open, so we can pretend it never was.
Without the shell, CreateProcess() won't pick up .cmd or .bat files,
which several perl utilities are packaged as on Win32, so use
qualified_path() to produce a full executable name.
|
| |
|
|
|
|
|
|
| |
by suggesting the declaration of a lexical variable, but without
removing the ‘Global symbol’ part, since much code no doubt depends
on its presence.
|
|
|
|
| |
Skip the tests on non-NTFS.
|
|
|
|
|
|
|
|
|
|
| |
With multiple threads (and Win32 fork() is implemented in terms of
threads), Win32's popen() code had a race condition where a different
thread could write to the stdout (or read from the stdin) handle setup
for a child process.
Avoid this by using the Win32 API to supply the I/O handles instead of
redirecting them in the current process.
|
|
|
|
|
|
|
|
|
| |
The d_pseudofork Configure variable hasn't been around all that long so
isn't suitable for use in dual-lived module tests, but is good for use in
core tests.
(t/win32/runenv.t doesn't do this since it is actually PERL_IMPLICIT_SYS
rather than the fork emulation which that test requires.)
|
|
|
|
|
|
|
| |
Updates the errno save macros to save the platform error number where
needed for more than just VMS.
The OS/2 code is untested.
|
|
|
|
| |
and tests Win32 signal emulation too
|
|
|
|
|
|
| |
Whatever the executable is named at the top level, it's always symlinked
as ./perl in t, so there's no need to set an environment variable to
override the expected name.
|
|
|
|
|
|
|
|
| |
- require './test.pl' in a BEGIN block, rather than use './test.pl'.
- Ensure the tests are done in the same program that emits the plan()
otherwise one copy of test.pl thinks tests were planned but not done
and the other thinks tests were done without being planned.
- Fix indentation.
|
| |
|
|
|
|
| |
Previous commit removed the need for indents.
|
|
|
|
|
|
|
| |
tempfile() from t/test.pl already handles checking for existing files
and removing them at the end of the test.
This test also doesn't need Config loaded
|
|
|
|
| |
Part of: RT #115788
|
|
|
|
| |
left from fixing perl #112272
|
|
|
|
|
|
| |
Also attempts to translate some other errors.
Unfortunately Microsoft don't document error codes.
|
| |
|
|
|
|
|
| |
this test fails without PERL_IMPLICIT_SYS, as reported by Steve
Hay in <CADED=K4EqXkJa2uC13wVYY_=uGDCx=uQ_rXu3Me4+3FvVM8D+g@mail.gmail.com>
|
|
|
|
|
| |
Remove support for the Borland C++ compiler on Win32, as agreed here:
http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2011-09/msg00034.html
|
|
|
|
|
|
|
| |
Not having any way to test this, I hope it works.
This is based on smoke reports and my own counting of the is()
calls in the test script.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
On Windows Vista, 7 and 2008, the win32 API call
GetEnvironmentVariableA() does not return environment values
with string length of greater than 32766, even though
such variables are supported in the environment.
This consequently caused @INC not to be populated for
such values of PERL5LIB on those OSes, as reported in
RT #87322.
This commit reworks the code so that GetEnvironmentStrings()
is called if GetEnvironmentVariableA() indicates the requested
value is set in the environmtn. The old fallback of consulting
the registry for variables beginning with "PERL" is retained, but
as a last-ditch fallback rather than the only recourse.
A new test file, t/win32/runenv.t has been added to validate
that the new behavior is working properly, as well as that
general environment variable handling is in accordance with
expectations, since t/run/runenv.t does not run on Win* platforms.
The new test file is essentially a non-forking clone of
t/run/runenv.t, with modifications to test cases to run properly
on Win* platforms, and with a new test case to test the new behavior.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Hello again,
much of the Perl test suite uses $Config{cc} =~ /^gcc/i to determine
whether the compiler looks/acts like gcc. This patch enables that
behaviour in t/win32/system.t too.
The reason behind this is that I have a batch file named gcc-ccache.cmd,
which I give to dmake as my compiler, and having things like this work
everywhere in Perl is nice.
Possibly, a more sane way of keeping the kind of compiler handy would be
to make $Config{CCTYPE} come into existence and have it store "gcc",
"msvc" and what other cc types we support.
-max
From f2e73cb5249433631fd4db5b46f62d05ff35526c Mon Sep 17 00:00:00 2001
From: Max Maischein <corion@corion.net>
Date: Mon, 26 Jan 2009 21:44:36 +0100
Subject: [PATCH] Unbreak the test if your compiler looks like gcc
|
|
|
|
|
|
|
|
|
| |
From: "Jan Dubois" <jand@activestate.com>
Message-ID: <00b301c760f6$d28129d0$77837d70$@com>
Adds the tests from the dual-lived CPAN distribution Win32-0.27
and removes two old t/win32 tests which are now redundant
p4raw-id: //depot/perl@30516
|
|
|
| |
p4raw-id: //depot/perl@23618
|
|
|
|
|
| |
(by Steve Hay)
p4raw-id: //depot/perl@22431
|
|
|
|
|
| |
Message-ID: <00bf01c1eedd$c0c62a00$d25cc3d9@vad>
p4raw-id: //depot/perl@16251
|
|
|
|
|
| |
Message-ID: <14316006107.20020426153816@tesla.rcub.bg.ac.yu>
p4raw-id: //depot/perl@16193
|
|
|
|
|
| |
Message-ID: <006e01c1eb11$156d2390$695cc3d9@vad>
p4raw-id: //depot/perl@16119
|
|
|
|
|
|
|
| |
NOTE: PerlIO/t/via.t leaves behind a via$$ file on windows when
it seems that it shouldn't (looks like a handle leak in PerlIO
to me)
p4raw-id: //depot/perl@16065
|
|
|
| |
p4raw-id: //depot/perl@15881
|
|
Win32::GetLongPathName() did not return valid results if there
were "." and ".." components in the path; also fix a potential
buffer overflow if the long path happens to be longer than
MAX_PATH (this can presumably happen if they use \\?\... style
paths); add a rather limited testsuite that exercises just the
edge cases
p4raw-link: @15879 on //depot/maint-5.6/perl: a15439704ef1059bf178ec4b1820fee7b2af7173
p4raw-id: //depot/perl@15880
p4raw-branched: from //depot/maint-5.6/perl@15877 'branch in'
t/win32/longpath.t
p4raw-integrated: from //depot/maint-5.6/perl@15877 'ignore' MANIFEST
(@12747..) 'merge in' t/harness (@11427..) win32/win32.c
(@13145..)
|