File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,9 @@ static bool isCaseSensitivePath(StringRef Path) {
50
50
}
51
51
52
52
FileCollector::FileCollector (std::string Root, std::string OverlayRoot)
53
- : Root(std::move(Root)), OverlayRoot(std::move(OverlayRoot)) {
53
+ : Root(Root), OverlayRoot(OverlayRoot) {
54
+ assert (sys::path::is_absolute (Root) && " Root not absolute" );
55
+ assert (sys::path::is_absolute (OverlayRoot) && " OverlayRoot not absolute" );
54
56
}
55
57
56
58
void FileCollector::PathCanonicalizer::updateWithRealPath (
Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ RUN: cp %p/../Inputs/basic3.macho.x86_64.o %t/Inputs
13
13
# Verify all the files are present.
14
14
RUN: dsymutil -f -o - -oso-prepend-path=%t %t/Inputs/basic.macho.x86_64 | llvm-dwarfdump -a - | FileCheck %s
15
15
16
+ # Make sure we don't crash with an empty TMPDIR.
17
+ RUN: env TMPDIR="" dsymutil -o -f -oso-prepend-path=%t %t/Inputs/basic.macho.x86_64 2>&1
18
+
16
19
# Create a reproducer.
17
20
RUN: env DSYMUTIL_REPRODUCER_PATH=%t.repro dsymutil -gen-reproducer -f -o %t.generate -oso-prepend-path=%t %t/Inputs/basic.macho.x86_64 2>&1 | FileCheck %s --check-prefixes=REPRODUCER
18
21
RUN: llvm-dwarfdump -a %t.generate | FileCheck %s
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ static std::string createReproducerDir(std::error_code &EC) {
20
20
} else {
21
21
EC = sys::fs::createUniqueDirectory (" dsymutil" , Root);
22
22
}
23
+ sys::fs::make_absolute (Root);
23
24
return EC ? " " : std::string (Root);
24
25
}
25
26
You can’t perform that action at this time.
0 commit comments