aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/test
diff options
context:
space:
mode:
authorIngela Andin <[email protected]>2017-05-08 11:25:20 +0200
committerGitHub <[email protected]>2017-05-08 11:25:20 +0200
commit66c23a4fa9f92eb510cf55daa17822c926d7c147 (patch)
tree56c96ff66bc25718db56ae5acc8f86875b47b5e9 /lib/inets/test
parent0be5bebb76d8685f0ecb28f80928c7a3f3a4b3ed (diff)
parente2b0e1828957e53063a2fa8f39188017a44a2c32 (diff)
downloadotp-66c23a4fa9f92eb510cf55daa17822c926d7c147.tar.gz
otp-66c23a4fa9f92eb510cf55daa17822c926d7c147.tar.bz2
otp-66c23a4fa9f92eb510cf55daa17822c926d7c147.zip
Merge pull request #1428 from martincox/master
Error when a non-DST time is passed to the httpd_util:rfc1123_date/1 function OTP-14394
Diffstat (limited to 'lib/inets/test')
-rw-r--r--lib/inets/test/httpd_basic_SUITE.erl13
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/inets/test/httpd_basic_SUITE.erl b/lib/inets/test/httpd_basic_SUITE.erl
index f413248092..a0a38ca103 100644
--- a/lib/inets/test/httpd_basic_SUITE.erl
+++ b/lib/inets/test/httpd_basic_SUITE.erl
@@ -42,7 +42,8 @@ all() ->
escaped_url_in_error_body,
script_timeout,
slowdose,
- keep_alive_timeout
+ keep_alive_timeout,
+ invalid_rfc1123_date
].
groups() ->
@@ -383,6 +384,16 @@ slowdose(Config) when is_list(Config) ->
end.
%%-------------------------------------------------------------------------
+
+invalid_rfc1123_date() ->
+ [{doc, "Test that a non-DST date is handled correcly"}].
+invalid_rfc1123_date(Config) when is_list(Config) ->
+ Rfc1123FormattedDate = "Sun, 26 Mar 2017 01:00:00 GMT",
+ NonDSTDateTime = {{2017, 03, 26},{1, 0, 0}},
+ Rfc1123FormattedDate =:= httpd_util:rfc1123_date(NonDSTDateTime).
+
+
+%%-------------------------------------------------------------------------
%% Internal functions
%%-------------------------------------------------------------------------