diff options
author | Alexander Larsson <alexl@redhat.com> | 2015-06-18 11:57:12 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2015-06-22 17:29:19 +0200 |
commit | 6e26045943d27656b4444e157d0d10c025aa69db (patch) | |
tree | c95ff4fd1b4c4f4e3a24420a53cebc34678ad225 /tests/m-common.c | |
parent | 60058fd5bdf289fe9210671447aaf027c8cd8a03 (diff) | |
download | gdm-6e26045943d27656b4444e157d0d10c025aa69db.tar.gz |
gdm-common: Add gdm_shell_expand() and tests
This allows shell-like expansion of strings. It will be later
used to allow configuring the environment via config files.
https://bugzilla.gnome.org/show_bug.cgi?id=751158
Diffstat (limited to 'tests/m-common.c')
-rw-r--r-- | tests/m-common.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/m-common.c b/tests/m-common.c index c5ff2f4a..62f1f44a 100644 --- a/tests/m-common.c +++ b/tests/m-common.c @@ -24,6 +24,7 @@ #include <glib-object.h> #include "s-common-address.h" +#include "s-common.h" static gboolean no_fork = FALSE; static gboolean verbose = FALSE; @@ -66,5 +67,15 @@ main (int argc, char **argv) failed = srunner_ntests_failed (r); srunner_free (r); + r = srunner_create (suite_common ()); + + if (no_fork) { + srunner_set_fork_status (r, CK_NOFORK); + } + + srunner_run_all (r, verbose ? CK_VERBOSE : CK_NORMAL); + failed |= srunner_ntests_failed (r); + srunner_free (r); + return failed != 0; } |