xref: /llvm-project/lldb/test/Shell/Diagnostics/TestDump.test (revision 4b21ecf10c8a0abb977bf11edf939cc708902cd3)
10d01300aSJonas Devlieghere# Check that the diagnostics dump command uses the correct directory and
20d01300aSJonas Devlieghere# creates one if needed.
30d01300aSJonas Devlieghere
40d01300aSJonas Devlieghere# Dump to an existing directory.
50d01300aSJonas Devlieghere# RUN: rm -rf %t.existing
60d01300aSJonas Devlieghere# RUN: mkdir -p %t.existing
70d01300aSJonas Devlieghere# RUN: %lldb -o 'diagnostics dump -d %t.existing'
80d01300aSJonas Devlieghere# RUN: file %t.existing | FileCheck %s
90d01300aSJonas Devlieghere
100d01300aSJonas Devlieghere# Dump to a non-existing directory.
110d01300aSJonas Devlieghere# RUN: rm -rf %t.nonexisting
120d01300aSJonas Devlieghere# RUN: %lldb -o 'diagnostics dump -d %t.nonexisting'
130d01300aSJonas Devlieghere# RUN: file %t.nonexisting | FileCheck %s
140d01300aSJonas Devlieghere
15*4b21ecf1SJonas Devlieghere# CHECK: directory
16