From e814416b69de859cafc474d1e16bea782a23e28a Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Fri, 3 Mar 2017 01:37:17 +0100 Subject: make: improved tests --- tests/blogc-make/check_exec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/blogc-make/check_exec.c b/tests/blogc-make/check_exec.c index febcfae..d12edbf 100644 --- a/tests/blogc-make/check_exec.c +++ b/tests/blogc-make/check_exec.c @@ -40,19 +40,19 @@ test_find_binary(void **state) will_return(__wrap_access, "../blogc"); will_return(__wrap_access, 0); - bin = bm_exec_find_binary("../blogc", "blogc", "BLOGC"); + bin = bm_exec_find_binary("../blogc-make", "blogc", "BLOGC"); assert_string_equal(bin, "'../blogc'"); free(bin); will_return(__wrap_access, "/usr/bin/blogc"); will_return(__wrap_access, 0); - bin = bm_exec_find_binary("/usr/bin/blogc", "blogc", "BLOGC"); + bin = bm_exec_find_binary("/usr/bin/blogc-make", "blogc", "BLOGC"); assert_string_equal(bin, "'/usr/bin/blogc'"); free(bin); will_return(__wrap_access, "../blogc"); will_return(__wrap_access, 1); - bin = bm_exec_find_binary("../blogc", "blogc", "BLOGC"); + bin = bm_exec_find_binary("../blogc-make", "blogc", "BLOGC"); assert_string_equal(bin, "blogc"); free(bin); -- cgit v1.2.3-18-g5258