Changeset 96348adc in mainline for kernel/test/print


Ignore:
Timestamp:
2006-12-12T17:24:58Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7e13972
Parents:
34db7fa
Message:

cleanup tests

Location:
kernel/test/print
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/test/print/print1.c

    r34db7fa r96348adc  
    3131#define BUFFER_SIZE 32
    3232
    33 void test_print1(void)
     33char * test_print1(void)
    3434{
    3535        int retval;
     
    3737       
    3838        char buffer[BUFFER_SIZE];
    39        
    40         printf(" Printf test \n");
    4139       
    4240        printf(" text 10.8s %*.*s \n", 5, 3, "text");
     
    5250        printf("'%#llx' 64bit, '%#x' 32bit, '%#hhx' 8bit, '%#hx' 16bit, unative_t '%#zx'. '%#llx' 64bit and '%s' string.\n", 0x1234567887654321ll, 0x12345678, 0x12, 0x1234, nat, 0x1234567887654321ull, "Lovely string" );
    5351       
    54         printf(" Print to NULL '%s'\n",NULL);
     52        printf(" Print to NULL '%s'\n", NULL);
    5553
    5654        retval = snprintf(buffer, BUFFER_SIZE, "Short text without parameters.");
     
    6866        printf("Result is: '%s', retval = %d\n", buffer, retval);
    6967       
    70         return;
     68        return NULL;
    7169}
  • kernel/test/print/print1.def

    r34db7fa r96348adc  
     1{
     2        "print1",
     3        "Printf test",
     4        &test_print1,
     5        true
     6},
Note: See TracChangeset for help on using the changeset viewer.