[tor-commits] [stegotorus/master] fixed test data for test_pdf_wrap_unwrap()

zwol at torproject.org zwol at torproject.org
Fri Jul 20 23:17:08 UTC 2012


commit cd8e68731a8a4a536ba28758e0538d53bb6afc94
Author: Steven Cheung <steven.cheung at sri.com>
Date:   Sun Jun 10 11:26:36 2012 -0700

    fixed test data for test_pdf_wrap_unwrap()
---
 src/test/unittest_pdfsteg.cc |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/src/test/unittest_pdfsteg.cc b/src/test/unittest_pdfsteg.cc
index 36a1167..7333fbc 100644
--- a/src/test/unittest_pdfsteg.cc
+++ b/src/test/unittest_pdfsteg.cc
@@ -36,8 +36,7 @@ static void
 test_pdf_wrap_unwrap(void *)
 {
   const char *pdf =
-    "[PDFHDR][STUFFS1]>>streamABCDEFGHIJYYendstream"
-    "[STUFFS2]>>streamABCDEFGHIJYYendstream[STUFF3][PDFTRAILER]";
+    "[PDFHDR][STUFFS1]1 0 obj <<\n/Length 12\n/Filter /FlateDecode\n>>\nstream\nABCDEFGHIJYY>>endstream\n[STUFF2][PDFTRAILER]";
 
   const char *const tests[] = {
     "12345",
@@ -61,7 +60,6 @@ test_pdf_wrap_unwrap(void *)
                   out, sizeof out);
     tt_int_op(rv, >, 0);
     r1 = rv;
-    tt_int_op(r1, ==, strlen(pdf));
 
     rv = pdf_unwrap(out, r1, orig, sizeof orig);
     tt_int_op(rv, >, 0);





More information about the tor-commits mailing list