[Reproducer] Always use absolute paths for capture & replay.
authorJonas Devlieghere <jonas@devlieghere.com>
Fri, 27 Sep 2019 17:30:40 +0000 (17:30 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Fri, 27 Sep 2019 17:30:40 +0000 (17:30 +0000)
commitcdec597905cd19324f6702af03c9ec4f3bf910da
tree417a8257ca6a3ef12672df5fd9b479c60c3495d1
parent72c57ec3e6b320c31274dadb888dc16772b8e7b6
[Reproducer] Always use absolute paths for capture & replay.

The VFS requires files to be have absolute paths. The file collector
makes paths relative to the reproducer root. If the root is a relative
path, this would trigger an assert in the VFS. This patch ensures that
we always make the given path absolute.

Thank you Ted Woodward for pointing this out!

llvm-svn: 373102
lldb/include/lldb/Utility/Reproducer.h
lldb/lit/Reproducer/TestRelativePath.test [new file with mode: 0644]
lldb/source/Utility/Reproducer.cpp