Changeset 34db7fa in mainline for kernel/test/btree/btree1.c


Ignore:
Timestamp:
2006-12-12T12:32:02Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
96348adc
Parents:
df496c5
Message:

cleanup kernel tests infrastructure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/test/btree/btree1.c

    rdf496c5 r34db7fa  
    3232#include <debug.h>
    3333
    34 #ifdef CONFIG_BENCH
    35 #include <arch/cycle.h>
    36 #endif
    37 
    3834static void *data = (void *) 0xdeadbeef;
    3935
    40 void test_btree1(void)
     36char * test_btree1(void)
    4137{
    42 #ifdef CONFIG_BENCH
    43         uint64_t t0 = get_cycle();
    44 #endif
    4538        btree_t t;
    4639        int i;
     
    164157
    165158        btree_print(&t);
    166 #ifdef CONFIG_BENCH
    167         uint64_t dt = get_cycle() - t0;
    168         printf("Time: %.*d cycles\n", sizeof(dt) * 2, dt);
    169 #endif
     159       
     160        return NULL;
    170161}
Note: See TracChangeset for help on using the changeset viewer.