CVSROOT: /sources/gnash Module name: gnash Changes by: Martin Guy <martinwguy> 07/07/06 14:51:51
Modified files: testsuite/libamf.all: test_number.cpp . : ChangeLog Log message: * testsuite/libamf.all/test_number.cpp: Remove uused variables and commented-out debugging printfs CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/libamf.all/test_number.cpp?cvsroot=gnash&r1=1.7&r2=1.8 http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3660&r2=1.3661 Patches: Index: testsuite/libamf.all/test_number.cpp =================================================================== RCS file: /sources/gnash/gnash/testsuite/libamf.all/test_number.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -u -b -r1.7 -r1.8 --- testsuite/libamf.all/test_number.cpp 1 Jul 2007 10:54:43 -0000 1.7 +++ testsuite/libamf.all/test_number.cpp 6 Jul 2007 14:51:51 -0000 1.8 @@ -50,8 +50,7 @@ int main(int argc, char *argv[]) { - bool dump = false; - int c, retries = 3; + int c; while ((c = getopt (argc, argv, "hdvsm:")) != -1) { switch (c) { @@ -72,7 +71,6 @@ AMF amf_obj; int fd, ret; char buf[AMF_NUMBER_SIZE+1]; - amfnum_t value = 0xf03fL; amfnum_t *num; memset(buf, 0, AMF_NUMBER_SIZE+1); @@ -84,25 +82,13 @@ num = amf_obj.extractNumber(buf); -// unsigned char hexint[32]; -// hexify((unsigned char *)hexint, (unsigned char *)num, 8, false); -// cerr << "AMF number is: 0x" << hexint << endl; -// hexify((unsigned char *)hexint, (unsigned char *)&value, 8, false); -// cerr << "AMF value is: 0x" << hexint << endl; - if ((((char *)num)[6] == -16) && (((char *)num)[7] == 0x3f)) { -// if (memcmp(num, &value, AMF_NUMBER_SIZE) == 0) { runtest.pass("Extracted Number AMF object"); } else { runtest.fail("Extracted Number AMF object"); } void *out = amf_obj.encodeNumber(*num); -// hexify((unsigned char *)hexint, (unsigned char *)out, 9, false); -// cerr << "AMF encoded number is: 0x" << hexint << endl; - -// hexify((unsigned char *)hexint, (unsigned char *)buf, 9, false); -// cerr << "AMF buff number is: 0x" << hexint << endl; if (memcmp(out, buf, 9) == 0) { runtest.pass("Encoded AMF Number"); Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3660 retrieving revision 1.3661 diff -u -b -r1.3660 -r1.3661 --- ChangeLog 6 Jul 2007 08:27:34 -0000 1.3660 +++ ChangeLog 6 Jul 2007 14:51:51 -0000 1.3661 @@ -1,6 +1,8 @@ 2007-07-06 Martin Guy <[EMAIL PROTECTED]> * backend/Makefile.am: Move a GUI test to its logical place + * testsuite/libamf.all/test_number.cpp: Remove uused variables and + commented-out debugging printfs 2007-07-05 Markus Gothe <[EMAIL PROTECTED]> _______________________________________________ Gnash-commit mailing list Gnash-commit@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-commit