浏览代码

Remember to check for whether we actually did exit in tests.

See: https://bugs.torproject.org/28179
Alexander Færøy 6 年之前
父节点
当前提交
fe2f4f3ec5
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/test/test_process_slow.c

+ 1 - 0
src/test/test_process_slow.c

@@ -242,6 +242,7 @@ test_callbacks(void *arg)
   /* We returned. Let's see what our event loop said. */
   tt_int_op(smartlist_len(process_data->stdout_data), OP_EQ, 12);
   tt_int_op(smartlist_len(process_data->stderr_data), OP_EQ, 3);
+  tt_assert(process_data->did_exit);
   tt_int_op(process_data->exit_code, OP_EQ, 0);
 
   /* Check stdout output. */