This patch sets an individual test timeout of 10 seconds. Due to bug llvm.org/PR51235 some tests sometimes take 20 minutes to executed. The timeout is meant to reduce the overall build time and allow detection over tests that take abnormal time to execute.
The timeout of 10s was suggested by @tianshilei1992 which current causes 7 tests to fail (See http://meinersbur.de:8011/#/builders/1). I don't know whether all of them are due to llvm.org/PR51235 or whether some regularly take longer than 10 seconds.