gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash ChangeLog testsuite/libbase/Makefile.am t...


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog testsuite/libbase/Makefile.am t...
Date: Tue, 04 Dec 2007 08:25:27 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/12/04 08:25:27

Modified files:
        .              : ChangeLog 
        testsuite/libbase: Makefile.am 
Added files:
        testsuite/libbase: IntTypesTest.cpp 

Log message:
        Add test for size of *int*_t structs.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.5076&r2=1.5077
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/libbase/Makefile.am?cvsroot=gnash&r1=1.32&r2=1.33
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/libbase/IntTypesTest.cpp?cvsroot=gnash&rev=1.1

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.5076
retrieving revision 1.5077
diff -u -b -r1.5076 -r1.5077
--- ChangeLog   4 Dec 2007 07:30:42 -0000       1.5076
+++ ChangeLog   4 Dec 2007 08:25:26 -0000       1.5077
@@ -1,3 +1,8 @@
+2007-12-04 Sandro Santilli <address@hidden>
+
+       * testsuite/libbase/: Makefile.am, IntTypesTest.cpp: 
+         Add test for size of *int*_t structs.
+
 2007-12-04 Zou Lunkai <address@hidden>
 
        * server/sprite_instance.cpp, server/vm/ASHandlers.cpp: 

Index: testsuite/libbase/Makefile.am
===================================================================
RCS file: /sources/gnash/gnash/testsuite/libbase/Makefile.am,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -b -r1.32 -r1.33
--- testsuite/libbase/Makefile.am       19 Aug 2007 19:54:48 -0000      1.32
+++ testsuite/libbase/Makefile.am       4 Dec 2007 08:25:27 -0000       1.33
@@ -43,6 +43,7 @@
        NoSeekFileTest \
        URLTest \
        RcTest \
+       IntTypesTest \
        $(NULL)
 
 if CURL
@@ -56,12 +57,6 @@
       site.exp.bak \
       NoSeekFileTestCache
 
-# TESTS = \
-#      NoSeekFileTest          \
-#      URLTest                 \
-#      RcTest
-
-
 CurlStreamTest_SOURCES = CurlStreamTest.cpp
 CurlStreamTest_CPPFLAGS = '-DINPUT="$(srcdir)/CurlStreamTest.cpp"'
 
@@ -74,6 +69,9 @@
 RcTest_SOURCES = TCXXRc.cpp
 RcTest_CPPFLAGS = -DSRCDIR="$(srcdir)"
 
+IntTypesTest_SOURCES = TCXXRc.cpp
+IntTypesTest_CPPFLAGS = -DSRCDIR="$(srcdir)"
+
 # LogTest_SOURCES = TCXXLog.cpp
 # LogTest_CPPFLAGS = '-DBUILDDIR="$(abs_builddir)"'
 

Index: testsuite/libbase/IntTypesTest.cpp
===================================================================
RCS file: testsuite/libbase/IntTypesTest.cpp
diff -N testsuite/libbase/IntTypesTest.cpp
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ testsuite/libbase/IntTypesTest.cpp  4 Dec 2007 08:25:27 -0000       1.1
@@ -0,0 +1,46 @@
+// 
+//   Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
+// 
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+// 
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+// 
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "check.h"
+
+#include <iostream>
+#include <sstream>
+#include <cassert>
+#include <boost/cstdint.hpp>
+
+using namespace std;
+
+int
+main(int /*argc*/, char** /*argv*/)
+{
+
+       // Check typedef sizes.
+       check_equals (sizeof(uint8_t), 1);
+       check_equals (sizeof(uint16_t), 2);
+       check_equals (sizeof(uint32_t), 4);
+       check_equals (sizeof(uint64_t), 8);
+       check_equals (sizeof(int8_t), 1);
+       check_equals (sizeof(int16_t), 2);
+       check_equals (sizeof(int32_t), 4);
+       check_equals (sizeof(int64_t), 8);
+
+}
+




reply via email to

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