Changeset 077184fd in rtems


Ignore:
Timestamp:
Oct 12, 2011, 4:19:11 AM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.11, 5, master
Children:
9ab1039d
Parents:
e7edd55
Message:

2011-10-12 Ralf Corsépius <ralf.corsepius@…>

  • psxhdrs/time01.c, psxhdrs/time02.c, psxhdrs/time03.c, psxhdrs/time04.c, psxhdrs/time05.c, psxhdrs/time06.c, psxhdrs/time07.c, psxhdrs/time08.c, psxhdrs/time09.c, psxhdrs/time10.c, psxhdrs/time11.c, psxhdrs/time12.c, psxhdrs/time13.c: Let test() return values (avoid warnings).
Location:
testsuites/psxtests
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/ChangeLog

    re7edd55 r077184fd  
    112011-10-12      Ralf Corsépius <ralf.corsepius@rtems.org>
    22
     3        * psxhdrs/time01.c, psxhdrs/time02.c, psxhdrs/time03.c,
     4        psxhdrs/time04.c, psxhdrs/time05.c, psxhdrs/time06.c,
     5        psxhdrs/time07.c, psxhdrs/time08.c, psxhdrs/time09.c,
     6        psxhdrs/time10.c, psxhdrs/time11.c, psxhdrs/time12.c,
     7        psxhdrs/time13.c: Let test() return values (avoid warnings).
    38        * psxhdrs/timer01.c, psxhdrs/timer02.c, psxhdrs/timer03.c,
    49        psxhdrs/timer04.c, psxhdrs/timer05.c, psxhdrs/timer06.c,
  • testsuites/psxtests/psxhdrs/time01.c

    re7edd55 r077184fd  
    1919#include <time.h>
    2020
    21 void test( void );
     21int test( void );
    2222
    23 void test( void )
     23int test( void )
    2424{
    2525  clock_t clock_ticks;
    2626
    2727  clock_ticks = clock();
     28
     29  return (clock_ticks != -1);
    2830}
  • testsuites/psxtests/psxhdrs/time02.c

    re7edd55 r077184fd  
    1919#include <time.h>
    2020
    21 void test( void );
     21int test( void );
    2222
    23 void test( void )
     23int test( void )
    2424{
    2525  time_t time1;
     
    3131
    3232  difference = difftime( time1, time2 );
     33
     34  return (difference != 0.0);
    3335}
  • testsuites/psxtests/psxhdrs/time03.c

    re7edd55 r077184fd  
    1919#include <time.h>
    2020
    21 void test( void );
     21int test( void );
    2222
    23 void test( void )
     23int test( void )
    2424{
    2525  struct tm timestruct;
     
    3737
    3838  time_encoded = mktime( &timestruct );
     39
     40  return (time_encoded != -1);
    3941}
  • testsuites/psxtests/psxhdrs/time04.c

    re7edd55 r077184fd  
    1919#include <time.h>
    2020
    21 void test( void );
     21int test( void );
    2222
    23 void test( void )
     23int test( void )
    2424{
    2525  time_t    new_time;
    2626
    2727  new_time = time( &new_time );
     28
     29  return (new_time != -1);
    2830}
  • testsuites/psxtests/psxhdrs/time05.c

    re7edd55 r077184fd  
    1919#include <time.h>
    2020
    21 void test( void );
     21int test( void );
    2222
    23 void test( void )
     23int test( void )
    2424{
    2525  size_t    length;
     
    3131
    3232  length = strftime( buffer, max_length, "%A", &timestruct );
     33
     34  return (length != 0);
    3335}
  • testsuites/psxtests/psxhdrs/time06.c

    re7edd55 r077184fd  
    1919#include <time.h>
    2020
    21 void test( void );
     21int test( void );
    2222
    23 void test( void )
     23int test( void )
    2424{
    2525  char      *buffer;
     
    2727
    2828  buffer = asctime( &timestruct );
     29
     30  return (buffer != NULL);
    2931}
  • testsuites/psxtests/psxhdrs/time07.c

    re7edd55 r077184fd  
    1919#include <time.h>
    2020
    21 void test( void );
     21int test( void );
    2222
    23 void test( void )
     23int test( void )
    2424{
    2525  char     *buffer;
     
    2727
    2828  buffer = ctime( &time );
     29
     30  return (buffer != NULL);
    2931}
  • testsuites/psxtests/psxhdrs/time08.c

    re7edd55 r077184fd  
    1919#include <time.h>
    2020
    21 void test( void );
     21int test( void );
    2222
    23 void test( void )
     23int test( void )
    2424{
    2525  time_t     time;
     
    2727
    2828  timestruct = gmtime( &time );
     29
     30  return (timestruct != NULL);
    2931}
  • testsuites/psxtests/psxhdrs/time09.c

    re7edd55 r077184fd  
    1919#include <time.h>
    2020
    21 void test( void );
     21int test( void );
    2222
    23 void test( void )
     23int test( void )
    2424{
    2525  time_t     time;
     
    2727
    2828  timestruct = localtime( &time );
     29
     30  return (timestruct != NULL);
    2931}
  • testsuites/psxtests/psxhdrs/time10.c

    re7edd55 r077184fd  
    1919#include <time.h>
    2020
    21 void test( void );
     21int test( void );
    2222
    23 void test( void )
     23int test( void )
    2424{
    2525  char      *buffer_pointer;
     
    2828
    2929  buffer_pointer = asctime_r( &timestruct, buffer );
     30
     31  return (buffer_pointer != NULL);
    3032}
  • testsuites/psxtests/psxhdrs/time11.c

    re7edd55 r077184fd  
    1919#include <time.h>
    2020
    21 void test( void );
     21int test( void );
    2222
    23 void test( void )
     23int test( void )
    2424{
    2525  char     *buffer_pointer;
     
    2828
    2929  buffer_pointer = ctime_r( &time, buffer );
     30
     31  return (buffer_pointer != NULL);
    3032}
  • testsuites/psxtests/psxhdrs/time12.c

    re7edd55 r077184fd  
    1919#include <time.h>
    2020
    21 void test( void );
     21int test( void );
    2222
    23 void test( void )
     23int test( void )
    2424{
    2525  time_t     time;
     
    2828
    2929  timestruct_pointer = gmtime_r( &time, &timestruct );
     30
     31  return (timestruct_pointer != NULL);
    3032}
  • testsuites/psxtests/psxhdrs/time13.c

    re7edd55 r077184fd  
    1919#include <time.h>
    2020
    21 void test( void );
     21int test( void );
    2222
    23 void test( void )
     23int test( void )
    2424{
    2525  time_t     time;
     
    2828
    2929  timestruct_pointer = localtime_r( &time, &timestruct );
     30
     31  return (timestruct_pointer != NULL);
    3032}
Note: See TracChangeset for help on using the changeset viewer.