diff options
author | Matthias Clasen <mclasen@redhat.com> | 2013-05-29 21:37:05 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2013-05-29 21:37:05 -0400 |
commit | c8a392612b23fdfc4a47032251b7aa276a7e1e65 (patch) | |
tree | 89c27d0dee56e61892a4e39fcc0a83481dc7456c /testsuite/a11y | |
parent | 3d225fb059f6312a8c57896eebaaf9fa90d4bfc4 (diff) | |
download | gtk+-c8a392612b23fdfc4a47032251b7aa276a7e1e65.tar.gz |
Use g_test_get_dir in test to locate files
This makes the tests work both installed and for make check.
Diffstat (limited to 'testsuite/a11y')
-rw-r--r-- | testsuite/a11y/accessibility-dump.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/testsuite/a11y/accessibility-dump.c b/testsuite/a11y/accessibility-dump.c index 62541a14fa..59fd79a521 100644 --- a/testsuite/a11y/accessibility-dump.c +++ b/testsuite/a11y/accessibility-dump.c @@ -861,13 +861,9 @@ main (int argc, char **argv) if (arg_base_dir) basedir = arg_base_dir; - else if (g_getenv ("srcdir")) - basedir = g_getenv ("srcdir"); else - basedir = "."; - + basedir = g_test_get_dir (G_TEST_DIST); dir = g_file_new_for_path (basedir); - add_tests_for_files_in_directory (dir); g_object_unref (dir); |