Patch attached.  (Justification: I'm emitting Test Anything Protocol
as text/plain from a -protocol static build of an application for
consumption by an existing unit test framework.)

-- 
Julian Squires
# HG changeset patch
# User Julian Squires <[email protected]>
# Date 1436812470 14400
#      Mon Jul 13 14:34:30 2015 -0400
# Node ID c39c4869639366ed93cfb0c19a82efe8886cf4bf
# Parent  af3f5b58aed2158bfbfca0e9f377c33004e2b2c7
Allow returnBlob and redirect in static protocol

Both of these functions end up returning RETURN_INDIRECTLY, which is
assumed to be an error by static.c's main.  Treat it as success
instead.

diff -r af3f5b58aed2 -r c39c48696393 src/c/static.c
--- a/src/c/static.c	Sun Jul 05 16:11:24 2015 -0400
+++ b/src/c/static.c	Mon Jul 13 14:34:30 2015 -0400
@@ -37,7 +37,7 @@
   while (1) {
     fk = uw_begin(ctx, argv[1]);
 
-    if (fk == SUCCESS) {
+    if (fk == SUCCESS || fk == RETURN_INDIRECTLY) {
       uw_print(ctx, 1);
       puts("");
       return 0;
_______________________________________________
Ur mailing list
[email protected]
http://www.impredicative.com/cgi-bin/mailman/listinfo/ur

Reply via email to