From b0625ce07b2a6a60c95ed25ed2f78fd038c4e833 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 16 Mar 2009 21:46:21 +0000 Subject: Add comment about running test as root. --- test/httpserver/testhttpserver.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/httpserver/testhttpserver.cpp') 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, -- cgit v1.2.3