summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/httpserver/testhttpserver.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/httpserver/testhttpserver.cpp b/test/httpserver/testhttpserver.cpp
index 0b610c59..c38ef8fe 100644
--- a/test/httpserver/testhttpserver.cpp
+++ b/test/httpserver/testhttpserver.cpp
@@ -580,6 +580,8 @@ int test(int argc, const char *argv[])
TEST_EQUAL(404, response.GetResponseCode());
}
+ // Make file inaccessible, should cause server to return a 403 error,
+ // unless of course the test is run as root :)
{
TEST_THAT(chmod("testfiles/testrequests.pl", 0) == 0);
HTTPRequest request(HTTPRequest::Method_GET,