[compiler-rt] 09a8372 - [NFC][tsan] clang-format the test
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Wed May 19 14:04:00 PDT 2021
Author: Vitaly Buka
Date: 2021-05-19T14:03:50-07:00
New Revision: 09a8372726597d3c34e76e015906fc035913d29c
URL: https://github.com/llvm/llvm-project/commit/09a8372726597d3c34e76e015906fc035913d29c
DIFF: https://github.com/llvm/llvm-project/commit/09a8372726597d3c34e76e015906fc035913d29c.diff
LOG: [NFC][tsan] clang-format the test
Added:
Modified:
compiler-rt/test/tsan/pthread_atfork_deadlock3.c
Removed:
################################################################################
diff --git a/compiler-rt/test/tsan/pthread_atfork_deadlock3.c b/compiler-rt/test/tsan/pthread_atfork_deadlock3.c
index 2ced0067de5c7..77578982fa464 100644
--- a/compiler-rt/test/tsan/pthread_atfork_deadlock3.c
+++ b/compiler-rt/test/tsan/pthread_atfork_deadlock3.c
@@ -2,11 +2,11 @@
// Regression test for
// https://groups.google.com/g/thread-sanitizer/c/TQrr4-9PRYo/m/HFR4FMi6AQAJ
#include "test.h"
-#include <sys/types.h>
-#include <sys/wait.h>
#include <errno.h>
-#include <string.h>
#include <signal.h>
+#include <string.h>
+#include <sys/types.h>
+#include <sys/wait.h>
long glob = 0;
@@ -64,7 +64,7 @@ int main() {
}
pthread_atfork(atfork, afterfork, afterfork_child);
pthread_t t;
- pthread_create(&t, NULL, worker, (void*)pthread_self());
+ pthread_create(&t, NULL, worker, (void *)pthread_self());
barrier_wait(&barrier);
pid_t pid = fork();
if (pid < 0) {
More information about the llvm-commits
mailing list