[Vm-dev] [commit][3378] Provide a -exitonwarn command line switch for the Mac and Unix VMs to allow for

Ryan Macnak rmacnak at gmail.com
Thu Jun 18 02:30:14 UTC 2015


Nice! They even come with C backtraces!

On Wed, Jun 17, 2015 at 2:23 PM, <commits at squeakvm.org> wrote:

>
> Revision: 3378
> Author:   eliot
> Date:     2015-06-17 14:23:27 -0700 (Wed, 17 Jun 2015)
> Log Message:
> -----------
> Provide a -exitonwarn command line switch for the Mac and Unix VMs to
> allow for
> CI testing of asserts.
>
> Modified Paths:
> --------------
>     branches/Cog/platforms/Mac OS/vm/sqMacUnixCommandLineInterface.c
>     branches/Cog/platforms/unix/vm/sqUnixMain.c
>
> Property Changed:
> ----------------
>     branches/Cog/platforms/Cross/vm/sqSCCSVersion.h
>
>
> Property changes on: branches/Cog/platforms/Cross/vm/sqSCCSVersion.h
> ___________________________________________________________________
> Modified: checkindate
>    - Tue Jun 16 20:35:30 PDT 2015
>    + Wed Jun 17 14:22:25 PDT 2015
>
> Modified: branches/Cog/platforms/Mac OS/vm/sqMacUnixCommandLineInterface.c
> ===================================================================
> --- branches/Cog/platforms/Mac OS/vm/sqMacUnixCommandLineInterface.c
> 2015-06-17 03:42:19 UTC (rev 3377)
> +++ branches/Cog/platforms/Mac OS/vm/sqMacUnixCommandLineInterface.c
> 2015-06-17 21:23:27 UTC (rev 3378)
> @@ -165,6 +165,10 @@
>         extern int blockOnError;
>         blockOnError = true;
>         return 1; }
> +  else if (!strcmp(argv[0], "-exitonwarn")) {
> +       extern sqInt erroronwarn;
> +       erroronwarn = true;
> +       return 1; }
>    else if (!strcmp(argv[0], "-blockonwarn")) {
>         extern int blockOnError;
>         extern sqInt erroronwarn;
> @@ -337,6 +341,7 @@
>
>    printf("  -blockonerror         on error or segv block, not exit.
> useful for attaching gdb\n");
>    printf("  -blockonwarn          on warning block, don't warn.  useful
> for attaching gdb\n");
> +  printf("  -exitonwarn           treat warnings as errors, exiting on
> warn\n");
>  }
>
>  static void printUsageNotes(void)
>
> Modified: branches/Cog/platforms/unix/vm/sqUnixMain.c
> ===================================================================
> --- branches/Cog/platforms/unix/vm/sqUnixMain.c 2015-06-17 03:42:19 UTC
> (rev 3377)
> +++ branches/Cog/platforms/unix/vm/sqUnixMain.c 2015-06-17 21:23:27 UTC
> (rev 3378)
> @@ -1386,6 +1386,7 @@
>    else if (!strcmp(argv[0], "-nohandlers"))    { installHandlers= 0;
>  return 1; }
>    else if (!strcmp(argv[0], "-blockonerror")) { blockOnError = 1; return
> 1; }
>    else if (!strcmp(argv[0], "-blockonwarn")) { erroronwarn = blockOnError
> = 1; return 1; }
> +  else if (!strcmp(argv[0], "-exitonwarn")) { erroronwarn = 1; return 1; }
>    else if (!strcmp(argv[0], "-timephases")) {
>         printPhaseTime(1);
>         return 1; }
> @@ -1553,6 +1554,7 @@
>  #endif
>    printf("  -blockonerror         on error or segv block, not exit.
> useful for attaching gdb\n");
>    printf("  -blockonwarn          on warning block, don't warn.  useful
> for attaching gdb\n");
> +  printf("  -exitonwarn           treat warnings as errors, exiting on
> warn\n");
>  #if 1
>    printf("Deprecated:\n");
>  # if !STACKVM
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20150617/240cb3de/attachment.htm


More information about the Vm-dev mailing list