source:
vbox/trunk/src/VBox/Additions/3D/mesa/mesa-24.0.2/.gitlab-ci/meson/time.sh@
105856
最後變更 在這個檔案從105856是 103996,由 提交於 11 月 前 | |
---|---|
|
|
檔案大小: 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 "$@" & |
9 | TIMEPID=$! |
10 | TESTPID=$(ps --ppid $TIMEPID -o pid=) |
11 | |
12 | if test "x$TESTPID" != x; then |
13 | trap 'kill -TERM $TESTPID; wait $TIMEPID; exit $?' TERM |
14 | fi |
15 | |
16 | wait $TIMEPID |
17 | exit $? |
注意:
瀏覽 TracBrowser
來幫助您使用儲存庫瀏覽器