diff options
author | Mokhtar Naamani <mokhtar.naamani@gmail.com> | 2012-09-04 13:58:05 +0300 |
---|---|---|
committer | Mokhtar Naamani <mokhtar.naamani@gmail.com> | 2012-09-04 13:58:24 +0300 |
commit | 51aaccd026f9aa7c9a222a218fe817454b020e2d (patch) | |
tree | fa39c946ac2abd819c496101dbb03c166c745a8b /tests | |
parent | e9a8ed85db9f445a107e147493751feb477cfd5a (diff) |
fixed htonl
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/runner.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py index 54ae5a49..b569c416 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -5013,11 +5013,11 @@ def process(filename): #include <arpa/inet.h> int main() { - printf("*%x,%x,%x,%x*\n", htonl(0x12345678), htons(0xabcd), ntohl(0x43211234), ntohs(0xbeaf)); + printf("*%x,%x,%x,%x*\n", htonl(0xa1b2c3d4), htons(0xabcd), ntohl(0x43211234), ntohs(0xbeaf)); return 0; } ''' - self.do_run(src, '*78563412,cdab,34122143,afbe*') + self.do_run(src, '*d4c3b2a1,cdab,34122143,afbe*') def test_ctype(self): # The bit fiddling done by the macros using __ctype_b_loc requires this. |