aboutsummaryrefslogtreecommitdiff
path: root/tests/main.vala
diff options
context:
space:
mode:
authorWilliam Hua <william.hua@canonical.com>2013-08-08 14:23:13 -0400
committerWilliam Hua <william.hua@canonical.com>2013-08-08 14:23:13 -0400
commit170596ad221d7ea1701d2a2215ff912bddbecdfa (patch)
tree5f63e03414faf5d8fdb873b7b74908b32af84adb /tests/main.vala
parent49783d7014a6f5342ec77f56e81aeab6954bc2ec (diff)
downloadayatana-indicator-keyboard-170596ad221d7ea1701d2a2215ff912bddbecdfa.tar.gz
ayatana-indicator-keyboard-170596ad221d7ea1701d2a2215ff912bddbecdfa.tar.bz2
ayatana-indicator-keyboard-170596ad221d7ea1701d2a2215ff912bddbecdfa.zip
Fix a couple more potential races.
Diffstat (limited to 'tests/main.vala')
-rw-r--r--tests/main.vala8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/main.vala b/tests/main.vala
index 09d612f1..c3997520 100644
--- a/tests/main.vala
+++ b/tests/main.vala
@@ -319,6 +319,10 @@ static void test_migration (void *data) {
return;
}
+ var loop = new MainLoop (null, false);
+ Timeout.add_seconds (TIMEOUT_S, () => { loop.quit (); return false; });
+ loop.run ();
+
try {
string sources;
Process.spawn_command_line_sync ("gsettings get org.gnome.desktop.input-sources sources", out sources);
@@ -381,6 +385,10 @@ static void test_no_migration (void *data) {
return;
}
+ var loop = new MainLoop (null, false);
+ Timeout.add_seconds (TIMEOUT_S, () => { loop.quit (); return false; });
+ loop.run ();
+
try {
string sources;
Process.spawn_command_line_sync ("gsettings get org.gnome.desktop.input-sources sources", out sources);