[compiler-rt] c9bdeab - [tsan][test] Switch setitimer(ITIMER_REAL, ...) to setitimer(ITIMER_VIRTUAL, ...)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 19 04:16:12 PDT 2024
Author: serge-sans-paille
Date: 2024-03-19T12:16:01+01:00
New Revision: c9bdeabdf4b46fbf1f6a9fcbf9cd61d460b18c08
URL: https://github.com/llvm/llvm-project/commit/c9bdeabdf4b46fbf1f6a9fcbf9cd61d460b18c08
DIFF: https://github.com/llvm/llvm-project/commit/c9bdeabdf4b46fbf1f6a9fcbf9cd61d460b18c08.diff
LOG: [tsan][test] Switch setitimer(ITIMER_REAL, ...) to setitimer(ITIMER_VIRTUAL, ...)
Followup to #85188
Added:
Modified:
compiler-rt/test/tsan/signal_sync.cpp
Removed:
################################################################################
diff --git a/compiler-rt/test/tsan/signal_sync.cpp b/compiler-rt/test/tsan/signal_sync.cpp
index b283c9341636fd..878b3f3b88b9f0 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);
}
More information about the llvm-commits
mailing list