cb424d7448
verify-patch-sanity.py validates every active recipe .patch has internally- consistent hunk line counts — catching the 'malformed patch at line N' failure at commit/CI/preflight time instead of hours into a cook. This cycle hit that class three times (qtwaylandscanner, sddm, xwayland), each only discovered when cookbook tried to apply the patch. Running it across the repo found 29 latent malformed patches (validated against GNU patch: e.g. relibc/P3-sysv-ipc reproduces 'malformed patch at line 22'). They were harmless only because they sit in vendored recipes (baked, not re- applied) — but would fail on any version-bump re-derivation. --fix recounts the hunk headers (body untouched) and repaired all 29. Wired into build-preflight.sh (Phase 1.0D) and redbear-ci.yml, with a unit test (test-patch-sanity.sh). Skips archived/legacy trees and unvalidatable formats (empty placeholders, bare-@@ git hunks).
24 lines
1.0 KiB
C++
24 lines
1.0 KiB
C++
// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}}
|
|
// Tests that dwoIds in modules match the dwoIDs in the main file.
|
|
|
|
// REQUIRES: asserts
|
|
|
|
// RUN: rm -rf %t.cache
|
|
// RUN: %clang_cc1 -triple %itanium_abi_triple -x objective-c++ -std=c++11 -debugger-tuning=lldb -debug-info-kind=limited -fmodules -fmodule-format=obj -dwarf-ext-refs -fimplicit-module-maps -fmodules-cache-path=%t.cache %s -I %S/Inputs -emit-llvm -o %t.ll -mllvm -debug-only=pchcontainer 2> %t.mod-out
|
|
// RUN: cat %t.ll %t.mod-out | FileCheck %s
|
|
// RUN: cat %t.ll | FileCheck --check-prefix=CHECK-REALIDS %s
|
|
// RUN: cat %t.mod-out | FileCheck --check-prefix=CHECK-REALIDS %s
|
|
|
|
@import DebugDwoId;
|
|
|
|
Dummy d;
|
|
|
|
// Find the emitted dwoID for DebugInfoId and compare it against the one in the PCM.
|
|
// CHECK: DebugDwoId-{{[A-Z0-9]+}}.pcm
|
|
// CHECK-SAME: dwoId: [[DWOID:[0-9]+]]
|
|
// CHECK: dwoId: [[DWOID]]
|
|
// CHECK-NEXT: !DIFile(filename: "DebugDwoId"
|
|
|
|
// Make sure the dwo IDs are real IDs and not fallback values (~1ULL).
|
|
// CHECK-REALIDS-NOT: dwoId: 18446744073709551615
|