Browse Source

test: remove superfluous stack size defines

dev/timer
Ludwig Ortmann 9 years ago
parent
commit
c7e793dca7
  1. 4
      tests/test_thread_basic/main.c
  2. 3
      tests/test_thread_cooperation/main.c

4
tests/test_thread_basic/main.c

@ -23,9 +23,7 @@
#include <flags.h>
#include <kernel.h>
#define STACK_SIZE (KERNEL_CONF_STACKSIZE_DEFAULT + KERNEL_CONF_STACKSIZE_MAIN)
char t2_stack[STACK_SIZE];
char t2_stack[KERNEL_CONF_STACKSIZE_MAIN];
void second_thread(void)
{

3
tests/test_thread_cooperation/main.c

@ -25,7 +25,6 @@
#include <kernel.h>
#include <mutex.h>
#define STACK_SIZE (KERNEL_CONF_STACKSIZE_MAIN)
#define PROBLEM 12
mutex_t mtx;
@ -33,7 +32,7 @@ mutex_t mtx;
volatile int storage = 1;
int main_id;
int ths[PROBLEM];
char stacks[PROBLEM][STACK_SIZE];
char stacks[PROBLEM][KERNEL_CONF_STACKSIZE_MAIN];
void run(void)
{

Loading…
Cancel
Save