1
0
mirror of https://github.com/golang/go synced 2024-11-18 20:44:45 -07:00
go/src/flag
David du Colombier e31d741801 flag: fix TestExitCode on Plan 9
CL 221427 added TestExitCode. This test is failing
on Plan 9 because ExitCode is always equal to 1
on error since Plan 9 use error strings.

This change fixes TestExitCode by checking that
ExitCode is equal to 1 on error instead of the
specific value.

Fixes #38237.

Change-Id: Ie269722e731e275e5bfc51644c1fa6be76525f1f
Reviewed-on: https://go-review.googlesource.com/c/go/+/227158
Run-TryBot: David du Colombier <0intro@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
2020-04-03 17:51:12 +00:00
..
example_test.go
example_value_test.go flag: add a Value example 2018-06-21 23:32:53 +00:00
export_test.go
flag_test.go flag: fix TestExitCode on Plan 9 2020-04-03 17:51:12 +00:00
flag.go flag: exit 0 when -h or -help invoked but undefined 2020-04-03 04:24:39 +00:00