
Encountered several testcase failures when running `ninja check-all`. It was due to the full path name were shown in the error message instead of the binary name, and therefore causing the check string mismatch. The machine was running CentOS 9 with binfmt_misc setup that uses qemu-aarch64 (8.1.2). Built and ran the unittest as aarch64 host (through qemu user). Co-authored-by: h2h <h2h@meta.com>
5 lines
261 B
C++
5 lines
261 B
C++
// RUN: not clang-query --invalid-arg 2>&1 | FileCheck %s
|
|
|
|
// CHECK: error: clang-query{{(\.exe)?}}: Unknown command line argument '--invalid-arg'. Try: '{{.*}}clang-query{{(\.exe)?}} --help'
|
|
// CHECK-NEXT: clang-query{{(\.exe)?}}: Did you mean '--extra-arg'?
|