From c4cd426799e20ae53121c65c68c97dace610666d Mon Sep 17 00:00:00 2001 From: Anonymus Raccoon Date: Mon, 27 Apr 2020 11:50:10 +0200 Subject: [PATCH] Making tests works --- .gitignore | 5 ++++- tests/tcd.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index a7f451b..f3b5883 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,7 @@ **/*.o **/*.a .vscode/ -42sh \ No newline at end of file +42sh +**/*.gcda +**/*.gcno +unit_tests \ No newline at end of file diff --git a/tests/tcd.c b/tests/tcd.c index 04e13b4..217162c 100644 --- a/tests/tcd.c +++ b/tests/tcd.c @@ -26,7 +26,7 @@ Test(cd, home) env->env[i] = strdup(environ[i]); builtin_cd(args, env); - cr_assert_str_eq(getcwd(NULL, 0), my_getenv("HOME")); + cr_assert_str_eq(getcwd(NULL, 0), getenv("HOME")); } Test(cd, absolute)