about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-06-06 23:07:06 +0100
committerJames Booth <boothj5@gmail.com>2015-06-06 23:07:06 +0100
commit0e5dc6d89b1121c8a00ebba142d0b5f02de5e097 (patch)
treea9441ad088b186157ea3e44d572e76bd52302eb9
parentc6ff761a95da09b53b3dd385ead93f55ca2fb3f2 (diff)
downloadprofani-tty-0e5dc6d89b1121c8a00ebba142d0b5f02de5e097.tar.gz
Close profanity in functional test hook
-rw-r--r--functionaltests/proftest.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/functionaltests/proftest.c b/functionaltests/proftest.c
index dda1cd90..b4f0017f 100644
--- a/functionaltests/proftest.c
+++ b/functionaltests/proftest.c
@@ -160,12 +160,14 @@ init_prof_test(void **state)
 void
 close_prof_test(void **state)
 {
+    prof_input("/quit");
+    waitpid(exp_pid, NULL, 0);
+    stbbr_stop();
     _cleanup_dirs();
 
     setenv("XDG_CONFIG_HOME", config_orig, 1);
     setenv("XDG_DATA_HOME", data_orig, 1);
 
-    stbbr_stop();
 }
 
 void