This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] tst-longjmp_chk2: add comments/sanity check


On Sun, 29 Dec 2013, Mike Frysinger wrote:

> +  /* Sanity check to keep test from looping forever (in case the longjmp
> +     chk code is slightly broken).  */
> +  assert (pass++ < 5);

Side effects inside an argument to assert don't seem a particularly good 
idea, even if we don't expect tests to use -DNDEBUG....

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]