1 # Check that the diagnostics dump command uses the correct directory and
2 # creates one if needed.
4 # Dump to an existing directory.
5 # RUN: rm -rf %t.existing
6 # RUN: mkdir -p %t.existing
7 # RUN: %lldb -o 'diagnostics dump -d %t.existing'
8 # RUN: file %t.existing | FileCheck %s
10 # Dump to a non-existing directory.
11 # RUN: rm -rf %t.nonexisting
12 # RUN: %lldb -o 'diagnostics dump -d %t.nonexisting'
13 # RUN: file %t.nonexisting | FileCheck %s