Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1diff --git a/src/library/tools/ktest/config.cpp b/src/library/tools/ktest/config.cpp 2index 8b20128..faf9bde 100644 3--- a/src/library/tools/ktest/config.cpp 4+++ b/src/library/tools/ktest/config.cpp 5@@ -24,8 +24,6 @@ 6 7 using namespace clMath; 8 9-static const char DEFAULT_PLATFORM_NAME[] = "AMD Accelerated Parallel Processing"; 10- 11 Config::Config() : 12 defaultConfig_(""), 13 cpp_("ktest.cpp"), 14@@ -35,7 +33,10 @@ Config::Config() : 15 hasFuncID_(false), hasSubdims_(false), 16 skipAccuracy_(false) 17 { 18- setPlatform(DEFAULT_PLATFORM_NAME); 19+ platform_ = NULL; 20+ setPlatform(""); 21+ 22+ device_ = NULL; 23 setDevice(""); 24 25 memset(&kargs_, 0, sizeof(kargs_)); 26@@ -262,7 +263,7 @@ Config::setPlatform(const std::string& name) 27 continue; 28 } 29 if (name.empty()) { 30- found = (strcmp(pname, DEFAULT_PLATFORM_NAME) == 0); 31+ found = true; 32 } 33 else { 34 found = (strcmp(pname, name.c_str()) == 0);