Boost logo

Boost Testing :

From: K. Noel Belcourt (kbelco_at_[hidden])
Date: 2007-09-20 14:29:21


On Sep 20, 2007, at 10:36 AM, Rene Rivera wrote:

> Rene Rivera wrote:
>> ===
>> #define EXIT_TIMEOUT 2
>> void out_action(
>> const char * action,
>> const char * target,
>> const char * command,
>> const char * out_data,
>> const char * err_data,
>> int exit_reason
>> );
>> ===
>> And then doing a switch in the out_action based on the exit_reason.
>
> I checked in partial code that has the above change. The
> exit_reason indicator is implemented for Windows.

How about this patch to output.c, is this what you had in mind?

-- Noel

[kbelco_at_sahp7645 src]$ svn diff output.c
Index: output.c
===================================================================
--- output.c (revision 39421)
+++ output.c (working copy)
@@ -53,6 +53,24 @@
      {
          fputs(command,globs.cmdout);
      }
+
+ switch (exit_reason)
+ {
+ case EXIT_OK:
+ break;
+ case EXIT_FAIL:
+ break;
+ case EXIT_TIMEOUT:
+ {
+ /* process expired, make user aware with explicit
message */
+ fputc(globs.timeout, bjam_out);
+ fputs(" second time limit exceeded", bjam_out);
+ fputc('\n', bjam_out);
+ break;
+ }
+ default:
+ break;
+ }

      /* print out the command output, if requested */
      if (0 != out_data &&


Boost-testing list run by mbergal at meta-comm.com