aboutsummaryrefslogtreecommitdiffstats
path: root/unittests
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2010-12-07 03:57:37 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2010-12-07 03:57:37 +0000
commit936671b2eaa0a6b27903f8d85a8f4b28fcf8ee84 (patch)
treefca1e0d7dfad53f2a615e3af9e11320b35ebc5c4 /unittests
parentee271d8758c8493f2cadf5b9c0ec57431565891b (diff)
downloadexternal_llvm-936671b2eaa0a6b27903f8d85a8f4b28fcf8ee84.zip
external_llvm-936671b2eaa0a6b27903f8d85a8f4b28fcf8ee84.tar.gz
external_llvm-936671b2eaa0a6b27903f8d85a8f4b28fcf8ee84.tar.bz2
Support/PathV2: Remove the error_code return type from all functions in the path
namespace. None of them return anything except for success anyway. These will be converted to returning their result soon. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121109 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/Support/Path.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/unittests/Support/Path.cpp b/unittests/Support/Path.cpp
index cd44bbe..016a7cd 100644
--- a/unittests/Support/Path.cpp
+++ b/unittests/Support/Path.cpp
@@ -85,37 +85,37 @@ TEST(Support, Path) {
bool bres;
StringRef sfres;
- ASSERT_FALSE(path::has_root_path(*i, bres));
- ASSERT_FALSE(path::root_path(*i, sfres));
- ASSERT_FALSE(path::has_root_name(*i, bres));
- ASSERT_FALSE(path::root_name(*i, sfres));
- ASSERT_FALSE(path::has_root_directory(*i, bres));
- ASSERT_FALSE(path::root_directory(*i, sfres));
- ASSERT_FALSE(path::has_parent_path(*i, bres));
- ASSERT_FALSE(path::parent_path(*i, sfres));
- ASSERT_FALSE(path::has_filename(*i, bres));
- ASSERT_FALSE(path::filename(*i, sfres));
- ASSERT_FALSE(path::has_stem(*i, bres));
- ASSERT_FALSE(path::stem(*i, sfres));
- ASSERT_FALSE(path::has_extension(*i, bres));
- ASSERT_FALSE(path::extension(*i, sfres));
- ASSERT_FALSE(path::is_absolute(*i, bres));
- ASSERT_FALSE(path::is_relative(*i, bres));
+ path::has_root_path(*i, bres);
+ path::root_path(*i, sfres);
+ path::has_root_name(*i, bres);
+ path::root_name(*i, sfres);
+ path::has_root_directory(*i, bres);
+ path::root_directory(*i, sfres);
+ path::has_parent_path(*i, bres);
+ path::parent_path(*i, sfres);
+ path::has_filename(*i, bres);
+ path::filename(*i, sfres);
+ path::has_stem(*i, bres);
+ path::stem(*i, sfres);
+ path::has_extension(*i, bres);
+ path::extension(*i, sfres);
+ path::is_absolute(*i, bres);
+ path::is_relative(*i, bres);
SmallString<16> temp_store;
temp_store = *i;
ASSERT_FALSE(fs::make_absolute(temp_store));
temp_store = *i;
- ASSERT_FALSE(path::remove_filename(temp_store));
+ path::remove_filename(temp_store);
temp_store = *i;
- ASSERT_FALSE(path::replace_extension(temp_store, "ext"));
+ path::replace_extension(temp_store, "ext");
StringRef filename(temp_store.begin(), temp_store.size()), stem, ext;
- ASSERT_FALSE(path::stem(filename, stem));
- ASSERT_FALSE(path::extension(filename, ext));
+ path::stem(filename, stem);
+ path::extension(filename, ext);
EXPECT_EQ(*(--sys::path::end(filename)), (stem + ext).str());
- ASSERT_FALSE(path::native(*i, temp_store));
+ path::native(*i, temp_store);
outs().flush();
}