aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorserge-sans-paille <sguelton@mozilla.com>2024-03-19 12:15:33 +0100
committerserge-sans-paille <sguelton@mozilla.com>2024-03-19 12:16:01 +0100
commitc9bdeabdf4b46fbf1f6a9fcbf9cd61d460b18c08 (patch)
tree618a90d687bfac3896fb202703fed1b8e0c830b1
parentccf042e90e1b987d69f01378ed89b832f86d434a (diff)
downloadllvm-c9bdeabdf4b46fbf1f6a9fcbf9cd61d460b18c08.zip
llvm-c9bdeabdf4b46fbf1f6a9fcbf9cd61d460b18c08.tar.gz
llvm-c9bdeabdf4b46fbf1f6a9fcbf9cd61d460b18c08.tar.bz2
[tsan][test] Switch setitimer(ITIMER_REAL, ...) to setitimer(ITIMER_VIRTUAL, ...)
Followup to #85188
-rw-r--r--compiler-rt/test/tsan/signal_sync.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/test/tsan/signal_sync.cpp b/compiler-rt/test/tsan/signal_sync.cpp
index b283c93..878b3f3 100644
--- a/compiler-rt/test/tsan/signal_sync.cpp
+++ b/compiler-rt/test/tsan/signal_sync.cpp
@@ -30,7 +30,7 @@ int main() {
struct sigaction act = {};
act.sa_handler = &handler;
- if (sigaction(SIGALRM, &act, 0)) {
+ if (sigaction(SIGVTALRM, &act, 0)) {
perror("sigaction");
exit(1);
}
@@ -39,7 +39,7 @@ int main() {
t.it_value.tv_sec = 0;
t.it_value.tv_usec = 10;
t.it_interval = t.it_value;
- if (setitimer(ITIMER_REAL, &t, 0)) {
+ if (setitimer(ITIMER_VIRTUAL, &t, 0)) {
perror("setitimer");
exit(1);
}