Commit graph

277 commits

Author SHA1 Message Date
Sebastian Wilzbach
42894784dd Markdownify Phobos
$(D word) -> `word`
2018-04-02 22:32:47 +02:00
Sebastian Wilzbach
a670e31918 Remove a cast from std.process 2018-03-14 10:52:13 +01:00
Jack Stouffer
663b5b9278 Revert addition of StdUnittest 2018-02-20 13:32:32 -05:00
Sebastian Wilzbach
9eb62085c2
Merge pull request #6134 from wilzbach/enforce-2
Turn enforce into an eponymous template + undocument enforceEx
2018-02-09 15:04:34 +01:00
Mike Franklin
32c28b58ad
Fix typo in std/process.d 2018-02-09 10:53:27 +09:00
The Dlang Bot
4933e91df2
Merge pull request #6140 from wilzbach/ref1
Use REF1 macro instead of OBJECTREF
merged-on-behalf-of: Vladimir Panteleev <github@thecybershadow.net>
2018-02-08 13:18:11 +01:00
Sebastian Wilzbach
5df71793da Replace OBJECTREF with REF1 and remove redundant LREF1 2018-02-08 11:09:03 +01:00
The Dlang Bot
0a0bd956da
Merge pull request #6137 from CyberShadow/pull-20180207-123000
std.process: Get rid of goofy warning in unit test
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-02-07 15:34:25 +01:00
Vladimir Panteleev
3b0dd34502
std.process: Get rid of goofy warning in unit test
Refactor out the need of the warning by placing the part of the test
containing "return" statements into its own function.
2018-02-07 12:31:46 +00:00
The Dlang Bot
09122acb34
Merge pull request #6117 from wilzbach/fix-18229
Fix Issue 18229 - Misleading documentation of std.process.environment.get
merged-on-behalf-of: Vladimir Panteleev <github@thecybershadow.net>
2018-02-07 04:07:36 +01:00
Sebastian Wilzbach
611e62c96f Turn enforce into an eponymous template + undocument enforceEx 2018-02-07 01:01:59 +01:00
Sebastian Wilzbach
b121fc9105
Revert "Turn enforce into an eponymous template + undocument enforceEx" 2018-02-06 16:55:28 +01:00
The Dlang Bot
757ec92db1
Merge pull request #6086 from wilzbach/enforceEx
Turn enforce into an eponymous template + undocument enforceEx
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2018-02-06 05:34:25 +01:00
Sebastian Wilzbach
50307774bf Fix Issue 18229 - Misleading documentation of std.process.environment.get 2018-02-03 16:39:14 +01:00
Sebastian Wilzbach
78dcc91e57 Replace enforceEx with enforce 2018-02-02 15:50:10 +01:00
Jack Stouffer
18cbb29b04 Replaced version(unittest) blocks with version(StdUnittest) 2018-02-01 19:56:59 -05:00
Alexandru Jercaianu
d777855000 std.process: Skip permission test when running as root
A spawnProcess unittest checks that we are unable to enter a directory
if we don't have the right permissions.  However, programs running
under the root user can chdir to a directory, despite it not having
execute permissions.

Thus, skip this test when running as root.
2017-10-31 12:15:12 +02:00
Vladimir Panteleev
57b0ae1910
std.process: Update Config documentation for stderrPassThrough 2017-09-22 21:33:09 +00:00
Vladimir Panteleev
71adbeee85
Fix Issue 17844 - std.process.execute should allow not capturing stderr 2017-09-21 20:28:08 +00:00
Sebastian Wilzbach
fe89346724 Merge pull request #5483 from FreeSlave/spawnProcessDetached
Add spawnProcessDetached
2017-07-25 23:21:32 +02:00
RazvanN7
b4284db1f9 Fix Issue 17250 - ProcessPipes (std.process) should provide a test for a null pid 2017-07-17 13:32:08 +03:00
Roman Chistokhodov
2169c19de0 Style changes for std.process 2017-07-14 23:50:06 +03:00
Roman Chistokhodov
dc7f802605 Add errnoString to remove code duplication from some modules 2017-07-01 02:34:49 +03:00
Roman Chistokhodov
0f357f026b Add stream redirection unittests for detached processes 2017-06-26 20:49:48 +03:00
Roman Chistokhodov
19c9f2ba6a Don't call setsid when spawning detached process 2017-06-26 20:49:48 +03:00
Roman Chistokhodov
d6225c8cf5 Add comments about pipes. Move setsid to the first process fork. Change directory in the first fork 2017-06-26 20:49:48 +03:00
Roman Chistokhodov
2ce18916fa Update documentation comments for std.process. Remove redundant refactoring 2017-06-26 20:49:48 +03:00
Roman Chistokhodov
1481dc64f5 Add Config.detached flag 2017-06-26 20:49:48 +03:00
Roman Chistokhodov
aca6b04d5c Add spawnProcessDetached for Posix 2017-06-26 20:49:48 +03:00
Andrei Alexandrescu
3b3cd77495 Adjust private 2017-06-15 17:01:43 +02:00
Vladimir Panteleev
442a94ab44 std.process: Correct indentation of private block 2017-06-15 17:01:43 +02:00
Andrei Alexandrescu
2f16ae7cb7 Eliminate shared this from std/process.d 2017-06-15 17:01:43 +02:00
Vladimir Panteleev
f5fed3d44c
std.process: Fix brace style
Fixes CircleCI style checks.
2017-06-13 21:49:04 +00:00
Lars T. Kyllingstad
9a91e25bbf Merge pull request #5431 from FreeSlave/track_child_errors
Track errors that may happen in forked process on Posix
2017-06-13 23:04:27 +02:00
Vladimir Panteleev
d0b9555a06
Revert "Sort selective imports"
This reverts commit 998ad51fd7.
2017-06-13 17:51:52 +00:00
Sebastian Wilzbach
2070d867dd Sort multiple packages within one line 2017-06-12 08:18:25 +02:00
Sebastian Wilzbach
998ad51fd7 Sort selective imports 2017-06-12 08:12:09 +02:00
Sebastian Wilzbach
61717ecc7d Sort imports 2017-06-12 07:54:38 +02:00
Vladimir Panteleev
07602da633 Revert "Partial Fix Issue 16615 - convert os pid to std.process Pid" 2017-06-09 15:51:34 +00:00
Eduard Staniloiu
71ca4c5b14 Partial Fix For Issue 16615 - convert os pid to std.process Pid 2017-06-08 01:26:50 +03:00
Roman Chistokhodov
a2e63b0bf2 final switch on spawnProcess child errors 2017-05-30 15:12:44 +03:00
Roman Chistokhodov
8bc0ab643f Improve coverage for failed chdir in spawnProcess 2017-05-30 14:42:43 +03:00
Roman Chistokhodov
44e584ee18 Remove pipe errors ignoring in spawnProcess. Add assert(0) instead of unknown error 2017-05-30 14:26:11 +03:00
Roman Chistokhodov
91877266e3 Add unittest for using malformed executable in spawnProcess 2017-05-29 22:52:34 +03:00
Roman Chistokhodov
4b440f742f Track errors that may happen in forked process on Posix 2017-05-29 21:39:16 +03:00
Roman Chistokhodov
8807639ff5 Make behavior of environment.opIndexAssign on Posix to match the behavior
on Windows.

Setting null as environment value leads to removing this variable
according to SetEnvironmentVariable documentation while Posix leaves
unspecified what setenev should do if value is null.
2017-05-08 22:29:12 +02:00
Sebastian Wilzbach
a2c6398332 Automatically add spaces to binary operators (==)
command:

sed -E "s/([[:alnum:]]) == ([[:alnum:]])/\1 == \2/g" -i **/*.d
sed -E "s/([[:alnum:]])== ([[:alnum:]])/\1 == \2/g" -i **/*.d
sed -E "s/([[:alnum:]]) ==([[:alnum:]])/\1 == \2/g" -i **/*.d
2017-02-23 00:57:47 +01:00
Sebastian Wilzbach
425ab667a3 Automatically set the range style from a..b -> a .. b
Commands:

sed -E "s/([[:alnum:]])[.][.]([[:alnum:]])/\1 .. \2/g" -i **/*.d
sed -E "s/([[:alnum:]])[.][.] ([[:alnum:]])/\1 .. \2/g" -i **/*.d
sed -E "s/([[:alnum:]]) [.][.]([[:alnum:]])/\1 .. \2/g" -i **/*.d
2017-02-22 05:37:31 +01:00
Sebastian Wilzbach
805c720595 Unify Phobos by ensuring there's always a space after cast(...)
Command:

sed -E 's/([^"])cast\(([^)]*?)\)([[:alnum:]])/\1cast(\2) \3/g' -i **/*.d
2017-02-21 16:40:20 +01:00
Sebastian Wilzbach
5521541032 Unify assert style to have no spaces between the first brace
Application of:

sed -E "s/assert +\(/assert(/" -i **/*.d
2017-02-21 15:27:15 +01:00