In article <20110528161256.ab89817...@cvs.netbsd.org>,
Matthias Scheler <source-changes-d@NetBSD.org> wrote:
>+      assert(pipe(fds) == 0);
[...]
>+      assert(write(fds[1], "", 1) == 1);
[...]
>+      assert(close(fds[0]) == 0);
>+      assert(close(fds[1]) == 0);
[...]
>+      assert(sigfillset(&mask) == 0);
[...]
>+      assert(sigprocmask(SIG_SETMASK, NULL, &mask) == 0);
[...]
>+      assert(close(fd) == 0);

Please don't create assertions that contain code, because compiled with
-DNDEBUG they vanish.

christos

Reply via email to