[all-commits] [llvm/llvm-project] 8feeba: [scudo] Allow using a different test main.

Christopher Ferris via All-commits all-commits at lists.llvm.org
Tue Sep 12 11:03:43 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8feeba643d25747a0a4b850539e38b1ef8228264
      https://github.com/llvm/llvm-project/commit/8feeba643d25747a0a4b850539e38b1ef8228264
  Author: Christopher Ferris <cferris at google.com>
  Date:   2023-09-12 (Tue, 12 Sep 2023)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/tests/scudo_unit_test.h
    M compiler-rt/lib/scudo/standalone/tests/scudo_unit_test_main.cpp

  Log Message:
  -----------
  [scudo] Allow using a different test main.

Fuchsia already uses a different main function for tests, so allow
anybody to use this mechanism.

Specifically, Android has a test main that allows tests to be run
in isolation and in parallel which speeds up the unit test runs
from ~14 seconds to ~4 seconds.

Reviewed By: Chia-hungDuan

Differential Revision: https://reviews.llvm.org/D159501




More information about the All-commits mailing list