X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftcon%2Ftest%2Fcompile_fail-tcon_cast.c;fp=ccan%2Ftcon%2Ftest%2Fcompile_fail-tcon_cast.c;h=3df0333ca047422eef3d83de1ea3b68063ab3df5;hp=f80ef42c091dde6ff817ba8dc6ea10ce9c9b3fb0;hb=07a9a950734c34be120491861647ace5a37d4c89;hpb=f98c408ee4e2f655e009e2499a02aeb2cc2fa905 diff --git a/ccan/tcon/test/compile_fail-tcon_cast.c b/ccan/tcon/test/compile_fail-tcon_cast.c index f80ef42c..3df0333c 100644 --- a/ccan/tcon/test/compile_fail-tcon_cast.c +++ b/ccan/tcon/test/compile_fail-tcon_cast.c @@ -25,5 +25,5 @@ int main(int argc, char *argv[]) icon.raw.p = NULL; x = tcon_cast(&icon, tc1, icon.raw.p); - return 0; + return x != NULL ? 0 : 1; }