summaryrefslogtreecommitdiffstats
path: root/src/tests/check_and_open-tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/check_and_open-tests.c')
-rw-r--r--src/tests/check_and_open-tests.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tests/check_and_open-tests.c b/src/tests/check_and_open-tests.c
index 32cf09f3..7ec8f3bc 100644
--- a/src/tests/check_and_open-tests.c
+++ b/src/tests/check_and_open-tests.c
@@ -29,6 +29,7 @@
#include <sys/stat.h>
#include "util/util.h"
+#include "tests/common.h"
#define SUFFIX ".symlink"
@@ -208,6 +209,9 @@ Suite *check_and_open_suite (void)
int main(void)
{
int number_failed;
+
+ tests_set_cwd();
+
Suite *s = check_and_open_suite ();
SRunner *sr = srunner_create (s);
/* If CK_VERBOSITY is set, use that, otherwise it defaults to CK_NORMAL */