Changeset View
Changeset View
Standalone View
Standalone View
clang/test/Modules/crash-vfs-path-traversal.m
// REQUIRES: crash-recovery, shell | // REQUIRES: crash-recovery, shell | ||||
// UNSUPPORTED: ms-sdk, ps4 | // UNSUPPORTED: ms-sdk, ps4 | ||||
// FIXME: Canonicalizing paths to remove relative traversal components | // FIXME: Canonicalizing paths to remove relative traversal components | ||||
// currenty fails a unittest on windows and is disable by default. | // currenty fails a unittest on windows and is disable by default. | ||||
// FIXME: This XFAIL is cargo-culted from crash-report.c. Do we need it? | // FIXME: This XFAIL is cargo-culted from crash-report.c. Do we need it? | ||||
// XFAIL: windows-gnu | // XFAIL: windows-gnu | ||||
// RUN: rm -rf %t | // RUN: rm -rf %t | ||||
// RUN: mkdir -p %t/i %t/m %t | // RUN: mkdir -p %t/i %t/m %t | ||||
// RUN: env FORCE_CLANG_DIAGNOSTICS_CRASH= TMPDIR=%t TEMP=%t TMP=%t \ | // RUN: env FORCE_CLANG_DIAGNOSTICS_CRASH= TMPDIR=%t TEMP=%t TMP=%t \ | ||||
// RUN: not %clang -fsyntax-only %s -I %S/Inputs/crash-recovery -isysroot %/t/i/ \ | // RUN: not %clang_bin -fsyntax-only %s -I %S/Inputs/crash-recovery -isysroot %/t/i/ \ | ||||
// RUN: -fmodules -fmodules-cache-path=%t/m/ 2>&1 | FileCheck %s | // RUN: -fmodules -fmodules-cache-path=%t/m/ 2>&1 | FileCheck %s | ||||
// RUN: FileCheck --check-prefix=CHECKSRC %s -input-file %t/crash-vfs-*.m | // RUN: FileCheck --check-prefix=CHECKSRC %s -input-file %t/crash-vfs-*.m | ||||
// RUN: FileCheck --check-prefix=CHECKSH %s -input-file %t/crash-vfs-*.sh | // RUN: FileCheck --check-prefix=CHECKSH %s -input-file %t/crash-vfs-*.sh | ||||
// RUN: FileCheck --check-prefix=CHECKYAML %s -input-file \ | // RUN: FileCheck --check-prefix=CHECKYAML %s -input-file \ | ||||
// RUN: %t/crash-vfs-*.cache/vfs/vfs.yaml | // RUN: %t/crash-vfs-*.cache/vfs/vfs.yaml | ||||
// RUN: find %t/crash-vfs-*.cache/vfs | \ | // RUN: find %t/crash-vfs-*.cache/vfs | \ | ||||
// RUN: grep "Inputs/crash-recovery/usr/include/stdio.h" | count 1 | // RUN: grep "Inputs/crash-recovery/usr/include/stdio.h" | count 1 | ||||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |