aboutsummaryrefslogtreecommitdiff
path: root/unittests/Support/Path.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'unittests/Support/Path.cpp')
-rw-r--r--unittests/Support/Path.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/unittests/Support/Path.cpp b/unittests/Support/Path.cpp
index 8570047af8..0dae960f48 100644
--- a/unittests/Support/Path.cpp
+++ b/unittests/Support/Path.cpp
@@ -94,6 +94,9 @@ TEST(Support, Path) {
if (error_code ec = sys::path::parent_path(*i, res))
ASSERT_FALSE(ec.message().c_str());
outs() << " parent_path: " << res << '\n';
+ if (error_code ec = sys::path::filename(*i, res))
+ ASSERT_FALSE(ec.message().c_str());
+ outs() << " filename: " << res << '\n';
temp_store = *i;
if (error_code ec = sys::path::make_absolute(temp_store))