Fix test failure.

Bug: http://b/25596173
Change-Id: I0cf8f550837d4a936d6a784063a0ec9509150358
This commit is contained in:
Josh Gao 2015-11-09 16:04:50 -08:00
parent 0e6542b75b
commit 09fac86ca3

View File

@ -42,6 +42,7 @@ static char* posix_basename(char* in) {
#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;