aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e>2012-01-11 20:35:18 +0000
committerthestig@chromium.org <thestig@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e>2012-01-11 20:35:18 +0000
commit03c31f21009d4e3d7de864405e1b72139ee8f63c (patch)
treec8521eeb61930a4371228df3c77c31676401dc4d /src
parentRefactor LinuxDumper and MinidumpWriter. (diff)
downloadbreakpad-03c31f21009d4e3d7de864405e1b72139ee8f63c.tar.xz
Build LinuxLibcSupportTest and make it pass.
Review URL: http://breakpad.appspot.com/341001 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@903 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src')
-rw-r--r--src/common/linux/linux_libc_support_unittest.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/common/linux/linux_libc_support_unittest.cc b/src/common/linux/linux_libc_support_unittest.cc
index d3907e94..a7c5a26a 100644
--- a/src/common/linux/linux_libc_support_unittest.cc
+++ b/src/common/linux/linux_libc_support_unittest.cc
@@ -59,8 +59,12 @@ TEST(LinuxLibcSupportTest, strcmp) {
for (unsigned i = 0; ; ++i) {
if (!test_data[i*2])
break;
- ASSERT_EQ(my_strcmp(test_data[i*2], test_data[i*2 + 1]),
- strcmp(test_data[i*2], test_data[i*2 + 1]));
+ int libc_result = strcmp(test_data[i*2], test_data[i*2 + 1]);
+ if (libc_result > 1)
+ libc_result = 1;
+ else if (libc_result < -1)
+ libc_result = -1;
+ ASSERT_EQ(my_strcmp(test_data[i*2], test_data[i*2 + 1]), libc_result);
}
}