aboutsummaryrefslogtreecommitdiff
path: root/tests/validate_examples/RunExample.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/validate_examples/RunExample.cpp')
-rw-r--r--tests/validate_examples/RunExample.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/validate_examples/RunExample.cpp b/tests/validate_examples/RunExample.cpp
index 5d5291abfb..998d5013a8 100644
--- a/tests/validate_examples/RunExample.cpp
+++ b/tests/validate_examples/RunExample.cpp
@@ -53,6 +53,8 @@ namespace arm_compute
namespace test
{
std::unique_ptr<AssetsLibrary> library;
+static constexpr uint32_t fixed_seed = 1;
+std::unique_ptr<AssetsLibrary> fixed_library;
} // namespace test
namespace utils
{
@@ -136,7 +138,8 @@ int run_example(int argc, char **argv, std::unique_ptr<ValidateExample> example)
g_example_argv.emplace_back(const_cast<char *>(arg.c_str())); // NOLINT
}
- library = support::cpp14::make_unique<AssetsLibrary>("." /* Only using random values */, seed->value());
+ library = support::cpp14::make_unique<AssetsLibrary>("." /* Only using random values */, seed->value());
+ fixed_library = support::cpp14::make_unique<AssetsLibrary>(".", fixed_seed);
if(options.log_level->value() > framework::LogLevel::NONE)
{