mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 06:23:53 +01:00
tests/memarray: call ps() directly
Rather than abusing _ps_handler() to call ps(), just call it directly.
This commit is contained in:
parent
20d3304077
commit
e819b9054e
@ -24,6 +24,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "memarray.h"
|
||||
#include "ps.h"
|
||||
|
||||
#define MESSAGE_SIZE (8U)
|
||||
|
||||
@ -39,8 +40,6 @@
|
||||
#define NUMBER_OF_LOOPS (1)
|
||||
#endif
|
||||
|
||||
extern int _ps_handler(int argc, char **argv);
|
||||
|
||||
struct block_t {
|
||||
struct node *next;
|
||||
int number;
|
||||
@ -114,7 +113,7 @@ int main(void)
|
||||
int loop = 0;
|
||||
|
||||
printf("Starting (%d, %u)\n", MAX_NUMBER_BLOCKS, MESSAGE_SIZE);
|
||||
_ps_handler(0, NULL);
|
||||
ps();
|
||||
|
||||
printf("LOOP #%i:\n", loop + 1);
|
||||
while (count < NUMBER_OF_TESTS) {
|
||||
@ -184,7 +183,7 @@ int main(void)
|
||||
res, (unsigned)memarray_available(&block_storage));
|
||||
|
||||
printf("Finishing\n");
|
||||
_ps_handler(0, NULL);
|
||||
ps();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user