makefile verändert

This commit is contained in:
Alexei Keller 2025-12-11 11:54:52 +01:00
parent 5ee0f97dc6
commit 44434a8c67
4 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ $(program_obj_filesobj_files): %.o: %.c
# Unit Tests
# --------------------------
unitTestsStack: stack.o test_stack.c $(unityfolder)/unity.c
$(CC) $(FLAGS) $^ -o $@ $(unityfolder)/unity.c
$(CC) $(FLAGS) -I$(unityfolder) $^ -o $@
# --------------------------

BIN
stack.o Normal file

Binary file not shown.

View File

@ -39,7 +39,7 @@ void test_push_and_top(void)
TEST_ASSERT_EQUAL_INT(30, *(int*)top(stack));
clearStack(&stack);
clearStack(stack);
TEST_ASSERT_NULL(stack);
}
@ -72,7 +72,7 @@ void test_clearStack(void)
stack = push(stack, &x);
stack = push(stack, &y);
clearStack(&stack);
clearStack(stack);
TEST_ASSERT_NULL(stack);
}

BIN
unitTestsStack.exe Normal file

Binary file not shown.