aboutsummaryrefslogtreecommitdiff
path: root/tests/framework/TestFilter.cpp
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2019-04-18 18:10:34 +0100
committerGeorgios Pinitas <georgios.pinitas@arm.com>2019-04-23 10:30:17 +0000
commit557d4aece64b2ed422ec853dbc2b7a4949ea56ca (patch)
treef92b31556f18e66873fc9bdbc8302b129a14cc1a /tests/framework/TestFilter.cpp
parent7179837ac9ef82c6f784aaee999be347bc7764fd (diff)
downloadComputeLibrary-557d4aece64b2ed422ec853dbc2b7a4949ea56ca.tar.gz
COMPMID-1995: Fix Disabled suite in test framework.
Change-Id: I6b22a002e946e948b9dda4964d3516994e057dd6 Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com> Reviewed-on: https://review.mlplatform.org/c/1012 Reviewed-by: Anthony Barbier <Anthony.barbier@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests/framework/TestFilter.cpp')
-rw-r--r--tests/framework/TestFilter.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/framework/TestFilter.cpp b/tests/framework/TestFilter.cpp
index 0af40c1717..f392aa7070 100644
--- a/tests/framework/TestFilter.cpp
+++ b/tests/framework/TestFilter.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017 ARM Limited.
+ * Copyright (c) 2017-2019 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -42,7 +42,8 @@ TestFilter::TestFilter(DatasetMode mode, const std::string &name_filter, const s
bool TestFilter::is_selected(const TestInfo &info) const
{
- if((info.mode & _dataset_mode) == DatasetMode::DISABLED)
+ const bool include_disabled = (info.mode == _dataset_mode) && (_dataset_mode == DatasetMode::DISABLED);
+ if((info.mode & _dataset_mode) == DatasetMode::DISABLED && !include_disabled)
{
return false;
}