aboutsummaryrefslogtreecommitdiff
path: root/tests/server/sws.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/server/sws.c')
-rw-r--r--tests/server/sws.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/server/sws.c b/tests/server/sws.c
index b006c2b57..36975bef5 100644
--- a/tests/server/sws.c
+++ b/tests/server/sws.c
@@ -350,6 +350,13 @@ static int get_request(int sock, int *part, int *open)
if(!strncmp(doc, "bad", 3))
/* if the host name starts with bad, we fake an error here */
test_no = DOCNUMBER_BADCONNECT;
+ else if(!strncmp(doc, "test", 4)) {
+ char *ptr = strchr(doc, ':');
+ if(ptr)
+ test_no = atoi(ptr+1);
+ else
+ test_no = DOCNUMBER_CONNECT;
+ }
else
test_no = DOCNUMBER_CONNECT;
}