diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-01-08 17:30:07 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-01-11 18:17:33 -0500 |
commit | 4968105790c65af58d4ab42bffa2a4bedc0be8ee (patch) | |
tree | 671df60ccecab777fe10672b115bfe870bbd5bde /src/test | |
parent | 87b934960ab514dec4b96ed4ef23c40bc61d3ceb (diff) |
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.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |