1 // decode across buffer boundary
10 #define A(c) do { if (!(c)) t_error(#c" failed\n"); } while(0)
18 A(write(p
[1], "x\340\240", 3) == 3);
19 A(dup2(p
[0], 0) == 0);
23 A(write(p
[1], "\200", 1) == 1);
28 t_error("wanted 0x800, got 0x%x\n", (unsigned)wc
);
33 t_error("wanted WEOF, got 0x%x\n", (unsigned)wc
);
35 t_error("wanted errno==0, got %d (%s)\n", errno
, strerror(errno
));