gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/rtmp r9894: eliminate one test case error


From: rob
Subject: [Gnash-commit] /srv/bzr/gnash/rtmp r9894: eliminate one test case error flagged by valgrind.
Date: Tue, 23 Dec 2008 19:37:43 -0700
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9894
committer: address@hidden
branch nick: rtmp
timestamp: Tue 2008-12-23 19:37:43 -0700
message:
  eliminate one test case error flagged by valgrind.
modified:
  testsuite/libnet.all/test_http.cpp
=== modified file 'testsuite/libnet.all/test_http.cpp'
--- a/testsuite/libnet.all/test_http.cpp        2008-12-24 02:31:58 +0000
+++ b/testsuite/libnet.all/test_http.cpp        2008-12-24 02:37:43 +0000
@@ -988,12 +988,12 @@
         runtest.fail("HTTP::parseEchoRequest(Number 256)");
     }
     // Number 256 Response
-    boost::shared_ptr<Buffer> hex_res14(new Buffer(""));
+    boost::shared_ptr<Buffer> hex_res14(new Buffer("00 00 00 00 00 01 00 0b 2f 
34 2f 6f 6e 52 65 73 75 6c 74 00 04 6e 75 6c 6c ff ff ff ff 00 40 70 00 00 00 
00 00 00"));
     amf::Buffer &buf14 = http.formatEchoResponse(headers14[1]->getName(), 
*headers14[3]);
     string head14(reinterpret_cast<const char *>(buf14.reference()));
     const char *ptr14a = reinterpret_cast<const char 
*>(hex_res14->reference());
     const char *ptr14b = reinterpret_cast<const char *>(buf14.reference()) + 
head14.size();
-    if (memcmp(ptr14a, ptr14b, hex_res14->allocated()-11) == 0) {
+    if (memcmp(ptr14a, ptr14b, AMF0_NUMBER_SIZE) == 0) {
         runtest.pass("HTTP::formatEchoResponse(Number 256)");
     } else {
         runtest.fail("HTTP::formatEchoResponse(Number 256)");


reply via email to

[Prev in Thread] Current Thread [Next in Thread]