From 51240cb0916ffcc88e3072070215d35379fef4fa Mon Sep 17 00:00:00 2001 From: Jose Date: Thu, 31 Mar 2016 08:40:00 +0000 Subject: IceUtil/stacktrace win32 fix --- cpp/test/IceUtil/stacktrace/Client.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'cpp/test/IceUtil/stacktrace/Client.cpp') diff --git a/cpp/test/IceUtil/stacktrace/Client.cpp b/cpp/test/IceUtil/stacktrace/Client.cpp index 682443b8732..6d28869a5d8 100644 --- a/cpp/test/IceUtil/stacktrace/Client.cpp +++ b/cpp/test/IceUtil/stacktrace/Client.cpp @@ -222,6 +222,7 @@ int main(int argc, char* argv[]) while(true) { + bool match = true; ifstream ifs(filename.c_str()); stringstream sstr; sstr << ifs.rdbuf(); @@ -259,14 +260,14 @@ int main(int argc, char* argv[]) if(actual[i].find(expected[i]) == string::npos) { #if defined(_WIN32) && defined(NDEBUG) + match = false; // // With windows optimized builds retry with the alternate // expect file. // if(filename != "StackTrace.release.Win32") { - filename = "StackTrace.release.Win32"; - continue; + break; } else { @@ -277,6 +278,14 @@ int main(int argc, char* argv[]) #endif } } + +#if defined(_WIN32) && defined(NDEBUG) + if(!match && filename != "StackTrace.release.Win32") + { + filename = "StackTrace.release.Win32"; + continue; + } +#endif break; #endif } -- cgit v1.2.3