[Reproducer] Discard reproducer directory if not generated.
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 13 Nov 2019 04:16:33 +0000 (20:16 -0800)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 13 Nov 2019 04:16:33 +0000 (20:16 -0800)
commit7ba28644a1eeb554e818644556f98abfc0795b02
tree4a73c1d35e940c4d62570169f2094a483a135bb4
parentd8b6b1114307558a5245de3806bb70f53f6f3efe
[Reproducer] Discard reproducer directory if not generated.

If lldb was run in capture mode, but no reproducer was generated, make
sure we clean up the reproducer directory.
lldb/include/lldb/Utility/Reproducer.h
lldb/source/Utility/Reproducer.cpp
lldb/test/Shell/Reproducer/Inputs/Discard.in [new file with mode: 0644]
lldb/test/Shell/Reproducer/TestDiscard.test [new file with mode: 0644]