diff options
author | William Hua <william.hua@canonical.com> | 2013-08-08 14:23:13 -0400 |
---|---|---|
committer | William Hua <william.hua@canonical.com> | 2013-08-08 14:23:13 -0400 |
commit | 170596ad221d7ea1701d2a2215ff912bddbecdfa (patch) | |
tree | 5f63e03414faf5d8fdb873b7b74908b32af84adb /tests/main.vala | |
parent | 49783d7014a6f5342ec77f56e81aeab6954bc2ec (diff) | |
download | ayatana-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.vala | 8 |
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); |