From patchwork Wed Sep 22 21:41:49 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Lance Taylor X-Patchwork-Id: 65459 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id C6749B70A5 for ; Thu, 23 Sep 2010 07:42:16 +1000 (EST) Received: (qmail 15205 invoked by alias); 22 Sep 2010 21:42:14 -0000 Received: (qmail 15190 invoked by uid 22791); 22 Sep 2010 21:42:14 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, SPF_HELO_PASS, TW_CC, T_RP_MATCHES_RCVD, T_TVD_MIME_NO_HEADERS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.35) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 22 Sep 2010 21:42:07 +0000 Received: from kpbe12.cbf.corp.google.com (kpbe12.cbf.corp.google.com [172.25.105.76]) by smtp-out.google.com with ESMTP id o8MLg4fx029918 for ; Wed, 22 Sep 2010 14:42:04 -0700 Received: from iwn3 (iwn3.prod.google.com [10.241.68.67]) by kpbe12.cbf.corp.google.com with ESMTP id o8MLf8Hl012738 for ; Wed, 22 Sep 2010 14:42:03 -0700 Received: by iwn3 with SMTP id 3so939794iwn.31 for ; Wed, 22 Sep 2010 14:42:03 -0700 (PDT) Received: by 10.231.59.212 with SMTP id m20mr715594ibh.130.1285191722654; Wed, 22 Sep 2010 14:42:02 -0700 (PDT) Received: from coign.google.com (dhcp-172-22-123-203.mtv.corp.google.com [172.22.123.203]) by mx.google.com with ESMTPS id r3sm13964ibk.19.2010.09.22.14.42.01 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 22 Sep 2010 14:42:01 -0700 (PDT) From: Ian Lance Taylor To: gcc-patches@gcc.gnu.org, gofrontend-dev@googlegroups.com Subject: [gccgo] Fix HTTP redirect test Date: Wed, 22 Sep 2010 14:41:49 -0700 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org The HTTP redirect test in the Go library started failing, because of some change in the web site which it checks (codesearch.google.com). This patch, copied from the master Go library, changes the test so that it works again. Committed to gccgo branch. Ian diff -r d54ea9a3b14d libgo/go/http/request_test.go --- a/libgo/go/http/request_test.go Mon Sep 20 10:24:28 2010 -0700 +++ b/libgo/go/http/request_test.go Wed Sep 22 14:39:45 2010 -0700 @@ -139,8 +139,8 @@ func TestRedirect(t *testing.T) { const ( - start = "http://codesearch.google.com/" - end = "http://www.google.com/codesearch" + start = "http://google.com/" + end = "http://www.google.com/" ) r, url, err := Get(start) if err != nil {