[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/rtmp r9849: keep valgrind happy.
From: |
rob |
Subject: |
[Gnash-commit] /srv/bzr/gnash/rtmp r9849: keep valgrind happy. |
Date: |
Wed, 17 Dec 2008 17:16:27 -0700 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9849
committer: address@hidden
branch nick: rtmp
timestamp: Wed 2008-12-17 17:16:27 -0700
message:
keep valgrind happy.
modified:
testsuite/libnet.all/test_http.cpp
=== modified file 'testsuite/libnet.all/test_http.cpp'
--- a/testsuite/libnet.all/test_http.cpp 2008-12-17 17:34:36 +0000
+++ b/testsuite/libnet.all/test_http.cpp 2008-12-18 00:16:27 +0000
@@ -290,8 +290,8 @@
// HTTP/1.1 200 OK\r\nDate: Tue, 1 Apr 2008 19:58:40 GMT\r\nServer: Cygnal
(GNU/Linux)\r\nLast-Modified: Tue, 1 Apr 2008 19:58:40 GMT\r\nEtag:
24103b9-1c54-ec8632c0\r\nAccept-Ranges: bytes\r\nContent-Length: 0\r\nKeep
http.clearHeader();
http.formatHeader(HTTP::OK);
-// cerr << "FIXME: " << http.getHeader() << endl;
- regcomp (®ex_pat, "HTTP/1.* 200
OK.*Date:.*Server:.*:.*-Length.*-Type:.*$",
+ cerr << "FIXME: " << http.getHeader() << endl;
+ regcomp (®ex_pat, "HTTP/[0-9].[0-9] 200
OK.*Date:.*Server:.*:.*-Length.*-Type:.*$",
REG_NOSUB); // note that we do want to look for NL
if (regexec (®ex_pat, reinterpret_cast<const char*>(http.getHeader()),
0, (regmatch_t *)0, 0)) {
runtest.fail ("HTTP::formatHeader(port)");
@@ -312,6 +312,8 @@
} else {
runtest.pass ("HTTP::formatErrorResponse(header)");
}
+ regfree(®ex_pat);
+
# if 0
regfree(®ex_pat);
regcomp (®ex_pat, "DOCTYPE.*<title>404 Not Found</title>.*$",
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/rtmp r9849: keep valgrind happy.,
rob <=