Commit 008e5eb6 authored by fbarchard@google.com's avatar fbarchard@google.com

produce a warning if versions are slightly off.

BUG=none
TEST=none
Review URL: https://webrtc-codereview.appspot.com/796004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@347 16f28f9a-4ce2-e073-06de-1de4eb20be90
parent 67aeadab
Name: libyuv
URL: http://code.google.com/p/libyuv/
Version: 345
Version: 347
License: BSD
License File: LICENSE
......
......@@ -11,6 +11,6 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
#define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 345
#define LIBYUV_VERSION 347
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
......@@ -31,6 +31,9 @@ TEST_F(libyuvTest, TestVersion) {
int svn_revision = atoi(ver);
printf("LIBYUV_SVNREVISION %d\n", svn_revision);
EXPECT_NEAR(LIBYUV_VERSION, svn_revision, 3); // Allow version to be close.
if (LIBYUV_VERSION != svn_revision) {
printf("WARNING - Versions do not match.\n");
}
#endif
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment