[clang] [APINotes] FIx yaml-roundtrip.test (PR #157606)
Aiden Grossman via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 8 20:53:50 PDT 2025
https://github.com/boomanaiden154 created https://github.com/llvm/llvm-project/pull/157606
head on MacOS by default does not support negative numbers. Try using sed to remove the last line of the file instead.
>From bf9bc100fd215f3450ae04881fe6272f8441240e Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Tue, 9 Sep 2025 03:52:31 +0000
Subject: [PATCH] [APINotes] FIx yaml-roundtrip.test
head on MacOS by default does not support negative numbers. Try using
sed to remove the last line of the file instead.
---
clang/test/APINotes/yaml-roundtrip.test | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/clang/test/APINotes/yaml-roundtrip.test b/clang/test/APINotes/yaml-roundtrip.test
index f4fa9ce7d70c3..702de91d55690 100644
--- a/clang/test/APINotes/yaml-roundtrip.test
+++ b/clang/test/APINotes/yaml-roundtrip.test
@@ -1,6 +1,6 @@
RUN: apinotes-test %S/Inputs/Frameworks/Simple.framework/Headers/Simple.apinotes > %t.result
RUN: not diff -u %S/Inputs/Frameworks/Simple.framework/Headers/Simple.apinotes %t.result | \
-RUN: tail -n +5 | head -n -1 | \
+RUN: tail -n +5 | sed \$d | \
RUN: FileCheck %s --implicit-check-not="{{^\+}}" --implicit-check-not="{{^\-}}"
We expect only the nullability to be different as it is canonicalized during the
More information about the cfe-commits
mailing list