tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

nss_loose_local_errors.patch (1397B)


      1 diff --git a/ssl/test/runner/runner.go b/ssl/test/runner/runner.go
      2 index 4c1c95551..3e4eb3530 100644
      3 --- a/ssl/test/runner/runner.go
      4 +++ b/ssl/test/runner/runner.go
      5 @@ -74,6 +74,7 @@ var (
      6 	deterministic      = flag.Bool("deterministic", false, "If true, uses a deterministic PRNG in the runner.")
      7 	allowUnimplemented = flag.Bool("allow-unimplemented", false, "If true, report pass even if some tests are unimplemented.")
      8 	looseErrors        = flag.Bool("loose-errors", false, "If true, allow shims to report an untranslated error code.")
      9 +	looseLocalErrors   = flag.Bool("loose-local-errors", false, "If true, allow shims to report an untranslated local error code.")
     10 	shimConfigFile     = flag.String("shim-config", "", "A config file to use to configure the tests for this shim.")
     11 	includeDisabled    = flag.Bool("include-disabled", false, "If true, also runs disabled tests.")
     12 	repeatUntilFailure = flag.Bool("repeat-until-failure", false, "If true, the first selected test will be run repeatedly until failure.")
     13 @@ -1696,7 +1697,7 @@ func runTest(statusChan chan statusMsg, test *testCase, shimPath string, mallocN
     14 	if localErr != nil {
     15 		localErrString = localErr.Error()
     16 	}
     17 -	if len(test.expectedLocalError) != 0 {
     18 +	if !*looseLocalErrors && len(test.expectedLocalError) != 0 {
     19 		correctFailure = correctFailure && strings.Contains(localErrString, test.expectedLocalError)
     20 	}