commit | 09fac86ca370a70b6995216de8df1488a833cb1e | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Mon Nov 09 16:04:50 2015 -0800 |
committer | Josh Gao <jmgao@google.com> | Mon Nov 09 16:04:50 2015 -0800 |
tree | 9098d61ef8dae262f84f2f82b60f5591b77b0932 | |
parent | 0e6542b75b2f3ca155b452782d2122f34f807485 [diff] [blame] |
Fix test failure. Bug: http://b/25596173 Change-Id: I0cf8f550837d4a936d6a784063a0ec9509150358
diff --git a/tests/libgen_basename_test.cpp b/tests/libgen_basename_test.cpp index 55939d1..d97e0da 100644 --- a/tests/libgen_basename_test.cpp +++ b/tests/libgen_basename_test.cpp
@@ -42,6 +42,7 @@ #include <gtest/gtest.h> static void __TestGnuBasename(const char* in, const char* expected_out, int line) { + errno = 0; const char* out = gnu_basename(in); ASSERT_STREQ(expected_out, out) << "(" << line << "): " << in << std::endl; ASSERT_EQ(0, errno) << "(" << line << "): " << in << std::endl;