summaryrefslogtreecommitdiff
path: root/test/dfsan/custom.cc
diff options
context:
space:
mode:
authorMohit K. Bhakkad <mohit.bhakkad@gmail.com>2016-03-09 08:00:37 +0000
committerMohit K. Bhakkad <mohit.bhakkad@gmail.com>2016-03-09 08:00:37 +0000
commitc05591f5566e192802870331ffe225db78a45a86 (patch)
tree805635a09f6b7421c85834bacf4fff41f9a24136 /test/dfsan/custom.cc
parent07c5d8a4fff5d11e0d148f927f345b12eb3d3f28 (diff)
[DFSan] Fix test_inet_pton for big endian archs
Reviewers: samsonov Subscribers: ed, jaydeep, sagar, llvm-commits Differential Revision: http://reviews.llvm.org/D17751 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@263001 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/dfsan/custom.cc')
-rw-r--r--test/dfsan/custom.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dfsan/custom.cc b/test/dfsan/custom.cc
index 057b0608e..71422f7ce 100644
--- a/test/dfsan/custom.cc
+++ b/test/dfsan/custom.cc
@@ -536,7 +536,7 @@ void test_inet_pton() {
int ret4 = inet_pton(AF_INET, addr4, &in4);
assert(ret4 == 1);
ASSERT_READ_LABEL(&in4, sizeof(in4), i_label);
- assert(in4.s_addr == 0x0100007f);
+ assert(in4.s_addr == htonl(0x7f000001));
char addr6[] = "::1";
dfsan_set_label(j_label, addr6 + 3, 1);