Changeset 8f26a44 in git


Ignore:
Timestamp:
Aug 5, 2013, 5:33:18 PM (11 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
60ff027fe2f1d52fb364602595ca246476a5d2dc
Parents:
ce9bfe4db5a16a3879122ddef6492a0b970949cb
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-08-05 17:33:18+02:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-08-12 12:19:32+02:00
Message:
Assure that config.h was generated on 'compatible' cpu (same size of long)
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • Singular/test.cc

    rce9bfe r8f26a44  
    236236int main( int, char *argv[] )
    237237{
    238   // init path names etc.
     238  assume( sizeof(long) == SIZEOF_LONG );
     239   
     240  if( sizeof(long) != SIZEOF_LONG )
     241  {
     242     WerrorS("Bad config.h: wrong size of long!");
     243     
     244     return(1);
     245  }
     246   
     247
     248   
     249   // init path names etc.
    239250//  feInitResources(argv[0]); //???
    240251  siInit(argv[0]); // ?
  • factory/test.cc

    rce9bfe r8f26a44  
    11#include <factory/factory.h>
    22#include <resources/feFopen.h>
     3#include "cf_assert.h"
    34
    45int mmInit(void) {
     
    101102{
    102103  int ret = 0;
    103  
     104
     105  ASSERT( sizeof(long) == SIZEOF_LONG, "Bad config.h: wrong size of long!"  );
     106
     107  if( sizeof(long) != SIZEOF_LONG )
     108  {
     109    printf("Bad config.h: wrong size of long!");
     110
     111    return(1);
     112  }
     113   
    104114  feInitResources(argv[0]);
    105115
  • kernel/test.cc

    rce9bfe r8f26a44  
    611611int main( int, char *argv[] )
    612612{
     613  assume( sizeof(long) == SIZEOF_LONG );
     614
     615  if( sizeof(long) != SIZEOF_LONG )
     616  {
     617    WerrorS("Bad config.h: wrong size of long!");
     618
     619    return(1);
     620  }
     621   
     622   
    613623  feInitResources(argv[0]);
    614624
  • libpolys/coeffs/test.cc

    rce9bfe r8f26a44  
    256256int main( int, char *argv[] )
    257257{
     258  assume( sizeof(long) == SIZEOF_LONG );
     259
     260  if( sizeof(long) != SIZEOF_LONG )
     261  {
     262    WerrorS("Bad config.h: wrong size of long!");
     263
     264    return(1);
     265  }
     266
     267   
    258268  feInitResources(argv[0]);
    259269
  • libpolys/tests/simple_test.h

    rce9bfe r8f26a44  
    1 
    2 
    3 
     1#ifdef HAVE_CONFIG_H
     2#include "config.h"
     3#endif /* HAVE_CONFIG_H */
     4#include <misc/auxiliary.h>
    45
    56class SimplestTestSuite : public CxxTest::TestSuite
     
    1112                TS_ASSERT_DELTA (fnum, 2.0f, 0.0001f);
    1213   }
     14   
     15   void testSIZEOFLONG()
     16   {
     17      TS_ASSERT( sizeof(long) == SIZEOF_LONG ); // correct config.h?
     18   }
     19   
    1320};
    1421
Note: See TracChangeset for help on using the changeset viewer.