This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Simplify platform specific code in t/run/cloexec.t
authorNicholas Clark <nick@ccl4.org>
Sun, 26 Feb 2012 13:10:35 +0000 (14:10 +0100)
committerNicholas Clark <nick@ccl4.org>
Mon, 27 Feb 2012 10:17:21 +0000 (11:17 +0100)
commit901455ecceca122044b675aeea6938e5a510ebb4
treec646b575b4bb4df35343cd4b8ecab6709072fad1
parenta892b81a8ad64d2a842be6138a2983f4b7c315df
Simplify platform specific code in t/run/cloexec.t

Don't assign to two lexical variables, $Is_VMS and $Is_Win32, only to use
them immediately for the same purpose - to skip the entire test.
In turn, there's no need to conditionally set $quote to a value suitable for
VMS or Win32, when neither OS ever runs the test.

The code has been this way since the file was added by commit
742218b34f58f961 in Nov 2006. Hence I don't think that the vestigial $quote
logic corresponds to pre-commit version that did run on these platforms.
Instead I infer that it has come from t/op/exec.t, used as a template for
running sub-scripts in a portable fashion.
t/run/cloexec.t