Test using std::min

This commit is contained in:
Zach Mullen 2010-03-17 12:12:04 -04:00
parent 4c59570bfb
commit 0d48f81d32

View File

@ -564,8 +564,8 @@ double cmCTestRunTest::ResolveTimeout()
"Exiting ctest." << std::endl);
exit(-1);
}
return timeout == 0 ? stop_timeout :
(timeout < stop_timeout ? timeout : stop_timeout);
#undef min
return timeout == 0 ? stop_timeout : std::min(timeout, stop_timeout);
}
//----------------------------------------------------------------------