[compiler-rt] 1c6e2ec - [gcov][test] Add `UNSUPPORTED: host-byteorder-big-endian` to gcov-fork.c

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 3 17:08:07 PDT 2020


Author: Fangrui Song
Date: 2020-07-03T17:06:54-07:00
New Revision: 1c6e2eceeb1fe9faa9f7e95424e2a7f1b1d0fb9a

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

LOG: [gcov][test] Add `UNSUPPORTED: host-byteorder-big-endian` to gcov-fork.c

This test strangely failed on ppc64be
http://lab.llvm.org:8011/builders/clang-ppc64be-linux/builds/50913

Added: 
    

Modified: 
    compiler-rt/test/profile/Posix/gcov-fork.c

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/profile/Posix/gcov-fork.c b/compiler-rt/test/profile/Posix/gcov-fork.c
index 67fe68cc3c71..4942d5ac9288 100644
--- a/compiler-rt/test/profile/Posix/gcov-fork.c
+++ b/compiler-rt/test/profile/Posix/gcov-fork.c
@@ -2,6 +2,8 @@
 /// fork/exec* so the lines before fork are counted once while succeeding
 /// lines are counted twice.
 // UNSUPPORTED: darwin
+/// FIXME: http://lab.llvm.org:8011/builders/clang-ppc64be-linux/builds/50913
+// UNSUPPORTED: host-byteorder-big-endian
 
 // RUN: mkdir -p %t.d && cd %t.d
 // RUN: %clang --coverage %s -o %t
@@ -16,7 +18,7 @@ void func1() {}                    // CHECK:      1: [[#@LINE]]:void func1()
 void func2() {}                    // CHECK-NEXT: 2: [[#@LINE]]:
 int main(void) {                   // CHECK-NEXT: 1: [[#@LINE]]:
   func1();                         // CHECK-NEXT: 1: [[#@LINE]]:
-  fork();                          // CHECK-NEXT: 1: [[#@LINE]]:
+  if (fork() == -1) return 1;      // CHECK-NEXT: 1: [[#@LINE]]:
   func2();                         // CHECK-NEXT: 2: [[#@LINE]]:
   return 0;                        // CHECK-NEXT: 2: [[#@LINE]]:
 }


        


More information about the llvm-commits mailing list