platform variation in exit codes

Brodie Rao brodie at bitheap.org
Sat Sep 25 10:11:18 CDT 2010


On Sep 25, 2010, at 4:24 AM, Adrian Buehlmann wrote:

> On 25.09.2010 02:44, Mads Kiilerich wrote:
>>  Testing on solaris fails with these diffs:
>>
>> diff --git a/tests/test-bisect.t b/tests/test-bisect.t
>> --- a/tests/test-bisect.t
>> +++ b/tests/test-bisect.t
>> @@ -270,7 +270,7 @@
>>    summary:     msg 1
>>
>>    $ false
>> -  [1]
>> +  [255]
>>
>>
>>    $ hg bisect -r
>> diff --git a/tests/test-run-tests.t b/tests/test-run-tests.t
>> --- a/tests/test-run-tests.t
>> +++ b/tests/test-run-tests.t
>> @@ -34,4 +34,4 @@
>>  Exit code:
>>
>>    $ false
>> -  [1]
>> +  [255]
>>
>>
>> Should we introduce (glob) and (re) for exit code lines too and  
>> match on
>> [*] (glob)? Or replace false with something else?
>
>
> I'd vote for simply removing these two '$ false' lines. Near as I can
> tell, they are unneeded.

The second one tests the exit code feature in the test runner.

This might work better:

  $ (exit 1)
  [1]


More information about the Mercurial-devel mailing list