From: Dmitry V. Levin Date: Fri, 13 May 2016 09:37:10 +0000 (+0000) Subject: tests/ptrace.c: tweak magic constants to make the test more reliable X-Git-Tag: v4.12~165 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=602998be62493f75562204f6bb391c7095352de9;p=strace tests/ptrace.c: tweak magic constants to make the test more reliable * tests/ptrace.c (main): Change bad_request and bad_data to make they lower 32-bit parts closer to -1U. --- diff --git a/tests/ptrace.c b/tests/ptrace.c index c6c74fb4..3810bd63 100644 --- a/tests/ptrace.c +++ b/tests/ptrace.c @@ -172,9 +172,9 @@ int main(void) { const unsigned long bad_request = - (unsigned long) 0xdeadbeeffacefeed; + (unsigned long) 0xdeadbeeffffffeed; const unsigned long bad_data = - (unsigned long) 0xdeadcafefacef00d; + (unsigned long) 0xdeadcafefffff00d; const unsigned long pid = (unsigned long) 0xdefaced00000000 | (unsigned) getpid();