summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2016-10-16 22:09:24 +0000
committerJustin Bogner <mail@justinbogner.com>2016-10-16 22:09:24 +0000
commit0db71d9e5802c6e409cc5a593e7a849f780eab13 (patch)
tree2232103014b57026351974cb1d74307def94582a
parent2ddb279a39e16156ffd12fc63ceda24e232318d9 (diff)
downloadbcm5719-llvm-0db71d9e5802c6e409cc5a593e7a849f780eab13.tar.gz
bcm5719-llvm-0db71d9e5802c6e409cc5a593e7a849f780eab13.zip
unittests: Explicitly ignore some return values in crash tests
Ideally these would actually check that the results are reasonable, but given that we're looping over so many different kinds of path that isn't really practical. llvm-svn: 284350
-rw-r--r--llvm/unittests/Support/Path.cpp34
1 files changed, 18 insertions, 16 deletions
diff --git a/llvm/unittests/Support/Path.cpp b/llvm/unittests/Support/Path.cpp
index e3b543c7bfe..65bd1de8b70 100644
--- a/llvm/unittests/Support/Path.cpp
+++ b/llvm/unittests/Support/Path.cpp
@@ -122,22 +122,24 @@ TEST(Support, Path) {
}
ASSERT_TRUE(ComponentStack.empty());
- path::has_root_path(*i);
- path::root_path(*i);
- path::has_root_name(*i);
- path::root_name(*i);
- path::has_root_directory(*i);
- path::root_directory(*i);
- path::has_parent_path(*i);
- path::parent_path(*i);
- path::has_filename(*i);
- path::filename(*i);
- path::has_stem(*i);
- path::stem(*i);
- path::has_extension(*i);
- path::extension(*i);
- path::is_absolute(*i);
- path::is_relative(*i);
+ // Crash test most of the API - since we're iterating over all of our paths
+ // here there isn't really anything reasonable to assert on in the results.
+ (void)path::has_root_path(*i);
+ (void)path::root_path(*i);
+ (void)path::has_root_name(*i);
+ (void)path::root_name(*i);
+ (void)path::has_root_directory(*i);
+ (void)path::root_directory(*i);
+ (void)path::has_parent_path(*i);
+ (void)path::parent_path(*i);
+ (void)path::has_filename(*i);
+ (void)path::filename(*i);
+ (void)path::has_stem(*i);
+ (void)path::stem(*i);
+ (void)path::has_extension(*i);
+ (void)path::extension(*i);
+ (void)path::is_absolute(*i);
+ (void)path::is_relative(*i);
SmallString<128> temp_store;
temp_store = *i;
OpenPOWER on IntegriCloud