changeset 207:0a9e5d753fb8

Tests: accept 404 on file link open with trailing slash. It's unspecified whether ENOTDIR or ELOOP/EMLINKS will be returned if both O_DIRECTORY and O_NOFOLLOW are set, so we accept both return codes (and 403 and 404 http status codes accordingly).
author Maxim Dounin <mdounin@mdounin.ru>
date Wed, 29 Feb 2012 13:09:30 +0100
parents 9963da7397cc
children 6bac00bba8d4
files http_disable_symlinks.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/http_disable_symlinks.t
+++ b/http_disable_symlinks.t
@@ -267,7 +267,7 @@ like(http_get('/complex/3/empty.html'), 
 
 chmod(0700, "$d/link");
 
-like(http_get('/link/tail'), qr!403 !, 'file with trailing /, on');
+like(http_get('/link/tail'), qr!40[34] !, 'file with trailing /, on');
 like(http_get('/link/tailowner'), qr!404 !, 'file with trailing /, owner');
 like(http_get('/link/tailoff'), qr!404 !, 'file with trailing /, off');