[lld] 4db4059 - [lld-macho] Make range-check.s test more tolerant

Jez Ng via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 12 15:45:24 PST 2021


Author: Jez Ng
Date: 2021-03-12T18:45:14-05:00
New Revision: 4db4059c8c8be9ded20fbad9fe86f31dd5b822ef

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

LOG: [lld-macho] Make range-check.s test more tolerant

Summary: The exact out-of-range value seems to differ by 8 bytes on the
buildbots compared to my local machine. I'm guessing it has something to
do with what inputs we are getting from llvm-mc. Not sure why, but I
don't think it's super important -- let's just ignore the number, the
out-of-range message is the important thing here

Added: 
    

Modified: 
    lld/test/MachO/invalid/range-check.s

Removed: 
    


################################################################################
diff  --git a/lld/test/MachO/invalid/range-check.s b/lld/test/MachO/invalid/range-check.s
index 22778f427846..dd19f8d2f28d 100644
--- a/lld/test/MachO/invalid/range-check.s
+++ b/lld/test/MachO/invalid/range-check.s
@@ -6,11 +6,11 @@
 # RUN: %lld -dylib %t/bar.o -o %t/libbar.dylib
 # RUN: not %lld -lSystem -o /dev/null %t/libbar.dylib %t/test.o 2>&1 | FileCheck %s
 
-# CHECK: error: relocation UNSIGNED is out of range: 8589942792 is not in [0, 4294967295]; references _foo
-# CHECK: error: relocation GOT_LOAD is out of range: 4294974033 is not in [-2147483648, 2147483647]; references _foo
-# CHECK: error: stub is out of range: 4294974006 is not in [-2147483648, 2147483647]; references _bar
-# CHECK: error: stub helper header is out of range: 4294974005 is not in [-2147483648, 2147483647]
-# CHECK: error: stub helper header is out of range: 4294969893 is not in [-2147483648, 2147483647]
+# CHECK: error: relocation UNSIGNED is out of range: [[#]] is not in [0, 4294967295]; references _foo
+# CHECK: error: relocation GOT_LOAD is out of range: [[#]] is not in [-2147483648, 2147483647]; references _foo
+# CHECK: error: stub is out of range: [[#]] is not in [-2147483648, 2147483647]; references _bar
+# CHECK: error: stub helper header is out of range: [[#]] is not in [-2147483648, 2147483647]
+# CHECK: error: stub helper header is out of range: [[#]] is not in [-2147483648, 2147483647]
 
 #--- bar.s
 .globl _bar


        


More information about the llvm-commits mailing list