From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19332 invoked by alias); 25 Apr 2003 19:59:03 -0000 Mailing-List: contact ecos-maintainers-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: ecos-maintainers-owner@sources.redhat.com Received: (qmail 19292 invoked from network); 25 Apr 2003 19:59:02 -0000 Message-ID: <3EA99385.30101@eCosCentric.com> Date: Fri, 25 Apr 2003 19:59:00 -0000 From: Jonathan Larmour User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.3) Gecko/20030314 X-Accept-Language: en-gb, en, en-us MIME-Version: 1.0 To: eCos Maintainers Subject: [APPROVE] cxxsupp test fixes Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-04/txt/msg00060.txt.bz2 This is needed to prevent "make tests" failing when there's no kernel and/or no malloc. Without it, it, er, doesn't work. There's no side-effects. Okay? Jifl Index: ChangeLog =================================================================== RCS file: /cvs/ecos/ecos/packages/infra/current/ChangeLog,v retrieving revision 1.34 retrieving revision 1.36 diff -u -5 -p -r1.34 -r1.36 --- ChangeLog 11 Apr 2003 18:08:16 -0000 1.34 +++ ChangeLog 25 Apr 2003 19:56:34 -0000 1.36 @@ -1,5 +1,11 @@ +2003-04-25 Jonathan Larmour + + * tests/cxxsupp.cxx: don't include as it's not + needed. + (cyg_start): CYGINT_ISO_MALLOC needs a #if test. + 2003-04-10 Nick Garnett * tests/cxxsupp.cxx: Added this test program to check that basic C++ support is present. It checks that pure virtual functions can be defined, that new and delete are present and functional, and cvs server: src/PKGconf.mak no longer exists, no comparison available cvs server: src/diag.c no longer exists, no comparison available Index: tests/cxxsupp.cxx =================================================================== RCS file: /cvs/ecos/ecos/packages/infra/current/tests/cxxsupp.cxx,v retrieving revision 1.1 retrieving revision 1.3 diff -u -5 -p -r1.1 -r1.3 --- tests/cxxsupp.cxx 10 Apr 2003 18:08:36 -0000 1.1 +++ tests/cxxsupp.cxx 25 Apr 2003 19:56:34 -0000 1.3 @@ -46,11 +46,10 @@ // Description: Simple test for C++ runtime support. // //####DESCRIPTIONEND#### //========================================================================== -#include #include #include #include #include @@ -137,11 +136,11 @@ cyg_start( void ) pure->pure_fun1(); pure->pure_fun2(); pure->impure_fun1(); pure->inline_fun1(); -#ifdef CYGINT_ISO_MALLOC +#if CYGINT_ISO_MALLOC Derived *derived2 = new Derived(2); Pure *pure2 = derived2; CYG_TEST_INFO("Calling derived2 members"); derived2->pure_fun1(); -- eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts --[ "You can complain because roses have thorns, or you ]-- --[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine