• Piotr Tworek's avatar
    Remove tmp files used to pass command line to tests after they finish · d5f1046c
    Piotr Tworek authored
    Right now the file used to pass command line parameters to test-
    processes is not removed after the test finished. In cases where tests
    are run in repeat mode those flag files just keep accumulating until
    the system runs out of space in it's $TMPDIR.
    
    To solve this, the patch makes sure the path to the file containing the
    flags is stored in UnitTestProcessLifetimeObserver and removed once
    the OnCompleted method is called.
    
    Bug: 814687
    Change-Id: Ifb0ba6dba860d9297fbc2c939e0cc10f620907fa
    Reviewed-on: https://chromium-review.googlesource.com/931341
    Commit-Queue: Nico Weber <thakis@chromium.org>
    Reviewed-by: default avatarNico Weber <thakis@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#539104}
    d5f1046c
unit_test_launcher.cc 26.6 KB