From 4db4059c8c8be9ded20fbad9fe86f31dd5b822ef Mon Sep 17 00:00:00 2001 From: Jez Ng Date: Fri, 12 Mar 2021 18:43:33 -0500 Subject: [PATCH] [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 --- lld/test/MachO/invalid/range-check.s | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lld/test/MachO/invalid/range-check.s b/lld/test/MachO/invalid/range-check.s index 22778f4..dd19f8d 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 -- 2.7.4