VirtualBox

source: vbox/trunk/src/VBox/Additions/3D/mesa/mesa-24.0.2/.gitlab-ci/meson/time.sh@ 105856

最後變更 在這個檔案從105856是 103996,由 vboxsync 提交於 11 月 前

Additions/3D/mesa: export mesa-24.0.2 to OSE. bugref:10606

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:executable 設為 *
檔案大小: 459 位元組
 
1#!/bin/sh
2
3# If the test times out, meson sends SIGTERM to this process.
4# Simply exec'ing "time" would result in no output from that in this case.
5# Instead, we need to run "time" in the background, catch the signals and
6# propagate them to the actual test process.
7
8/usr/bin/time -v "$@" &
9TIMEPID=$!
10TESTPID=$(ps --ppid $TIMEPID -o pid=)
11
12if test "x$TESTPID" != x; then
13 trap 'kill -TERM $TESTPID; wait $TIMEPID; exit $?' TERM
14fi
15
16wait $TIMEPID
17exit $?
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette