Skip to content

Commit

Permalink
Fix the failure of hard_coded/runtime_opt on Windows.
Browse files Browse the repository at this point in the history
tests/hard_coded/runtime_opt.exp2:
    Alternative expected output for where stdout and stderr are
    interleaved differently.

tests/hard_coded/runtime_opt.m:
    Document what the expected outputs are for.
  • Loading branch information
juliensf committed Jul 28, 2023
1 parent 12a3a1d commit f3e3036
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/hard_coded/runtime_opt.exp2
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Option `--nondetstack-size-kwords=256 --small-nondetstack-size-kwords=256':
Hello world (with non-standard options).

Option `--nondet-stack-size-kwords=256 --small-nondet-stack-size-kwords=256':
Hello world (with non-standard options).

Option `--detstack-size=128 --small-detstack-size=128':
Hello world (with non-standard options).

Option `--this-is-not-a-real-option':
The MERCURY_OPTIONS environment variable contains an invalid option.
Please refer to the Environment Variables section of the Mercury
User's Guide for details.
mercury_runtime: unrecognized option: `this-is-not-a-real-option'

3 changes: 3 additions & 0 deletions tests/hard_coded/runtime_opt.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
%---------------------------------------------------------------------------%
% vim: ts=4 sw=4 et ft=mercury
%---------------------------------------------------------------------------%
% The different exepcted outputs correspond to different interleavings of
% standard output and error.
%---------------------------------------------------------------------------%

:- module runtime_opt.
:- interface.
Expand Down

0 comments on commit f3e3036

Please sign in to comment.