Commit graph

314 commits

Author SHA1 Message Date
The Dlang Bot
ffa63b6204
Merge pull request #7434 from CyberShadow/pull-20200330-230002
std.socket: Improve 16514 unittest to guard against inherited attributes
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2020-05-24 08:55:16 +02:00
Geod24
04f3979317 Replace 'Issue XXX' with Bugzilla links
Make the links clickable, as was done in the DMD repository.
Also avoids any ambiguity w.r.t. where the issue is stored.
2020-04-13 16:28:09 +09:00
Vladimir Panteleev
ca56784e20
std.socket: Improve 16514 unittest to guard against inherited attributes 2020-03-30 23:14:08 +00:00
Jacob Carlborg
75190aac72 Fix socket test for iOS derived platforms
Reduce the length of the Unix socket file path.
2020-03-24 20:28:24 +01:00
Jacob Carlborg
b817b59004 Fix failing unit test for std.socket on iOS derived platforms
iOS derived platforms don't allow as many open sockets.
2020-03-03 12:51:08 +01:00
Jacob Carlborg
60f892724e Fix exception "Path too long" when creating Unix socket
The max length of a Unix socket path on Apple's ARM platform is 104.
Due the long temp directory path on these platforms the limit is
pretty easy to hit. The solution for the unit test is shortening some
parts of the filename of the Unix socket.
2020-03-03 12:51:08 +01:00
Geod24
ce7003dcb1 std.socket: Move const to the RHS 2020-02-04 10:07:07 +09:00
Adam D. Ruppe
7e3ac1d24c Fix Issue 20544 - socket.remoteAddress throws out of memory error with unix domain socket peer 2020-01-30 08:38:11 -05:00
Alexandru Militaru
bb62aaca3d Replaced version (unittest) with version (StdUnittest) to avoid unnecessary overhead when compiling with -unittest 2020-01-19 14:05:17 +02:00
Bernhard Seckinger
43276247b5 Fix Issue 20259 - [Function Socket.bind] Doesn't inform what Exception
it throws
2019-12-28 09:48:05 +01:00
Adam D. Ruppe
4c59d7f73b Fix Issue 20313 - test timeout error condition 2019-10-25 13:55:55 -04:00
Adam D. Ruppe
648b13b500 handle timeout on Windows the same as on Linux - no other way in current thing without dropping down to Win32 functions 2019-10-23 16:50:29 -04:00
RazvanN7
68cd5d1168 Fix enum type in std.socket to match the receiver type 2019-06-27 16:14:40 +03:00
Flying-Toast
40ba89b7f4 add messages to some asserts in std/socket.d 2019-05-25 09:50:32 -04:00
Walter Bright
218e9c1d5f std.socket: -dip1000 2019-03-18 20:07:46 -07:00
Nathan Sashihara
6ffd4e7f28 Replace imports of core.sys.windows.windows to speed up compilation 2018-12-17 21:03:31 -05:00
Iain Buclaw
f8e19a134f posix.mak: Enforce no whitespace after opening parenthesis for version conditions 2018-09-23 17:38:58 +02:00
Iain Buclaw
fd5facfe04 posix.mak: Enforce whitespace before opening parenthesis for version conditions 2018-09-22 16:57:24 +02:00
Walter Bright
ec16c4e6a2 socket: use scope 2018-06-08 20:28:21 -07:00
Sebastian Wilzbach
c324714fde Remove a few cases of underscore escaping 2018-06-04 13:05:01 +02:00
Giles Bathgate
06c523dd01 Remove duplicated document text in Socket.close() 2018-04-24 20:52:20 +01:00
Steven Schveighoffer
d4a35f09da More removal of version(unittest) 2018-04-13 12:20:02 -04:00
The Dlang Bot
a7006d1eae
Merge pull request #6384 from wilzbach/pr-6204
Make std.socket DIP1000 compatible
merged-on-behalf-of: Nathan Sashihara <n8sh@users.noreply.github.com>
2018-04-03 10:03:31 +02:00
Sebastian Wilzbach
42894784dd Markdownify Phobos
$(D word) -> `word`
2018-04-02 22:32:47 +02:00
Sebastian Wilzbach
9953f02fa0 Make std.socket DIP1000 compatible 2018-03-30 02:17:27 +02:00
Radu Racariu
bb3681fd14 fix strerror usage in uClibc version 2018-03-05 09:59:17 +02:00
Martin Nowak
09926f9837 Merge remote-tracking branch 'upstream/stable' into merge_stable 2018-02-23 21:37:12 +01:00
Jack Stouffer
663b5b9278 Revert addition of StdUnittest 2018-02-20 13:32:32 -05:00
Joakim
034988a0db Add needed changes to get all tests passing with Musl 2018-02-17 14:25:07 +05:30
Jack Stouffer
18cbb29b04 Replaced version(unittest) blocks with version(StdUnittest) 2018-02-01 19:56:59 -05:00
RazvanN7
fa52c3f709 Fix erroneous imports in unittests 2018-01-23 13:10:34 +02:00
Diederik de Groot
31ca73d58d
Port of phobos to DragonFlyBSD
Notes:
- FIXME message related to dragonfly malloc issue (issue reported on upstream dragonfly issue database)
2017-12-20 08:05:49 +01:00
Sebastian Wilzbach
df6365092a Replace body keyword with its replacement: do
Automatic replacement with

    sed -i "s/^\([ ]*\)body/\1do/" -i **/*.d
2017-11-20 15:33:52 +01:00
Jonathan M Davis
ae67887065 Remove use of std.datetime.StopWatch in std.socket tests. 2017-10-03 22:29:19 -06:00
Adrian Matoga
e3a650c2ce Support abstract UnixAddress 2017-07-21 22:12:14 +02:00
Sebastian Wilzbach
70f06b2357 Remove old, redundant private import access specifier
Very very old versions of D (well into 0.x) had imports public by default,
like C header files. This modernizes the codebase and removes the
redundant `private` access specifier.
This has been done with:

sed "s/private import/import/g" -i **/*.d
2017-07-11 12:28:39 +02:00
Sebastian Wilzbach
e7111d4fd0 Fix invalid undefined Ddoc macros 2017-06-15 11:00:47 +02:00
Sebastian Wilzbach
2070d867dd Sort multiple packages within one line 2017-06-12 08:18:25 +02:00
Sebastian Wilzbach
61717ecc7d Sort imports 2017-06-12 07:54:38 +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
Andrei Alexandrescu
30724e67d9 Merge pull request #5166 from wilzbach/dscanner-unittest-safe-or-system
Dscanner: let unittest be @safe or @system
2017-02-22 14:44:08 -05:00
Sebastian Wilzbach
a36cec8686 DScanner: automatially set all unattributed unittests to @safe or @system 2017-02-22 05:42:04 +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
Walter Bright
76fb6de79f std.socket: use proper block comments 2017-02-11 02:05:27 -08:00
Basile Burg
17cea5abdc
style fix - remove wrong usages of the final attribute 2017-01-16 21:00:13 +01:00
Eduard Staniloiu
3d98191ce9 Fix issue 16970 - Fix deprecations and warnings when compiling Phobos 2016-12-27 15:57:20 +02:00
sprinkle131313
0857bdfe27 Enables long line style check. 2016-12-20 04:00:36 -05:00
Vladimir Panteleev
448ddbe2e8 std.socket: Add test for issue 16514 2016-10-13 08:26:47 +00:00
Vladimir Panteleev
b3ea2e4312 Revert "std.socket: Decorate Socket methods"
This reverts commit 1fc5f9b34c.
2016-10-13 08:26:47 +00:00