From 4968105790c65af58d4ab42bffa2a4bedc0be8ee Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Thu, 8 Jan 2015 17:30:07 -0500 Subject: Simplify execute_directory() Remove the optional sepearate opening of the directory, it would be just too complicated with the change to multiple directories. Move the middle of execute_directory() to a seperate function to make it easier to grok. --- src/test/test-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test') diff --git a/src/test/test-util.c b/src/test/test-util.c index d529a213cc..d862149fa8 100644 --- a/src/test/test-util.c +++ b/src/test/test-util.c @@ -1219,7 +1219,7 @@ static void test_execute_directory(void) { assert_se(chmod(name2, 0755) == 0); assert_se(touch(name3) >= 0); - execute_directory(tempdir, NULL, DEFAULT_TIMEOUT_USEC, NULL); + execute_directory(tempdir, DEFAULT_TIMEOUT_USEC, NULL); assert_se(access("/tmp/test-execute_directory/it_works", F_OK) >= 0); assert_se(access("/tmp/test-execute_directory/it_works2", F_OK) >= 0); -- cgit v1.2.3-54-g00ecf