[compiler-rt] c2cac7e - [profile] Move test into Posix

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 27 15:19:27 PDT 2024


Author: Vitaly Buka
Date: 2024-08-27T15:19:17-07:00
New Revision: c2cac7e7cad896bcf85873d1dabb2cad8c83428e

URL: https://github.com/llvm/llvm-project/commit/c2cac7e7cad896bcf85873d1dabb2cad8c83428e
DIFF: https://github.com/llvm/llvm-project/commit/c2cac7e7cad896bcf85873d1dabb2cad8c83428e.diff

LOG: [profile] Move test into Posix

Fix Windows after #102940

Added: 
    compiler-rt/test/profile/Posix/instrprof-fork.c

Modified: 
    

Removed: 
    compiler-rt/test/profile/instrprof-fork.c


################################################################################
diff  --git a/compiler-rt/test/profile/instrprof-fork.c b/compiler-rt/test/profile/Posix/instrprof-fork.c
similarity index 88%
rename from compiler-rt/test/profile/instrprof-fork.c
rename to compiler-rt/test/profile/Posix/instrprof-fork.c
index 8b2bdd056a2f9b..8df0abd73c4c36 100644
--- a/compiler-rt/test/profile/instrprof-fork.c
+++ b/compiler-rt/test/profile/Posix/instrprof-fork.c
@@ -15,7 +15,8 @@
 __attribute__((noinline)) void func1() {}
 __attribute__((noinline)) void func2() {}
 
-int main(void) {      //   child     | parent
+int main(void) {
+  //                       child     | parent
   int status;         // func1 func2 | func1 func2
   func1();            //   +1        |   +1        (*)
   pid_t pid = fork(); //             |
@@ -27,4 +28,5 @@ int main(void) {      //   child     | parent
   if (pid)            // ------------+------------
     wait(&status);    //    2     1  |    2    0
   return 0;           // (*)  the child inherits counter values prior to fork
-}                     //      from the parent in non-continuous mode.
+                      //      from the parent in non-continuous mode.
+}


        


More information about the llvm-commits mailing list