Skip to content

test-utils: Shut down Apache server more reliably

Simon McVittie requested to merge wip/smcv/save-server-root into master
  • test-utils: Log Apache arguments

    This helped to diagnose a use-after-free bug in the unit tests.

  • test-utils: Save Apache server root during initialization

    By the time we want to use it during teardown, it is no longer safe to call g_test_build_filename(), because some GTest state is discarded at the end of g_test_run() (see glib#2563 (closed)). As a result, the command that should shut down the server fails, the server continues to run, and its port is unavailable for the next test-case.

    This should mostly resolve #175.

Edited by Simon McVittie

Merge request reports