[llgo] Disable known failing packages in check-libgo

Summary:
There are two packages in libgo which have
known failures when running the "make check" rule.
This change disables those packages in the tests so
that we can run libgo tests without them until the
root causes are identified and resolved.

Test Plan: ran check-libgo rule

Reviewers: pcc

Reviewed By: pcc

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D8003

llvm-svn: 231448
GitOrigin-RevId: d07b2b42285e53d111569996f99a8725af18f16b
diff --git a/libgo-check-failures.diff b/libgo-check-failures.diff
new file mode 100644
index 0000000..ac53aee
--- /dev/null
+++ b/libgo-check-failures.diff
@@ -0,0 +1,40 @@
+diff --git a/libgo/Makefile.am b/libgo/Makefile.am
+index 526b656..31c206e 100644
+--- a/libgo/Makefile.am
++++ b/libgo/Makefile.am
+@@ -3688,7 +3688,6 @@ TEST_PACKAGES = \
+ 	os/check \
+ 	path/check \
+ 	reflect/check \
+-	regexp/check \
+ 	runtime/check \
+ 	sort/check \
+ 	strconv/check \
+@@ -3787,7 +3786,6 @@ TEST_PACKAGES = \
+ 	os/user/check \
+ 	path/filepath/check \
+ 	regexp/syntax/check \
+-	runtime/pprof/check \
+ 	sync/atomic/check \
+ 	text/scanner/check \
+ 	text/tabwriter/check \
+diff --git a/libgo/Makefile.in b/libgo/Makefile.in
+index 2254478..d2482d1 100644
+--- a/libgo/Makefile.in
++++ b/libgo/Makefile.in
+@@ -2193,7 +2193,6 @@ TEST_PACKAGES = \
+ 	os/check \
+ 	path/check \
+ 	reflect/check \
+-	regexp/check \
+ 	runtime/check \
+ 	sort/check \
+ 	strconv/check \
+@@ -2292,7 +2291,6 @@ TEST_PACKAGES = \
+ 	os/user/check \
+ 	path/filepath/check \
+ 	regexp/syntax/check \
+-	runtime/pprof/check \
+ 	sync/atomic/check \
+ 	text/scanner/check \
+ 	text/tabwriter/check \
diff --git a/third_party/gofrontend/libgo/Makefile.am b/third_party/gofrontend/libgo/Makefile.am
index 526b656..31c206e 100644
--- a/third_party/gofrontend/libgo/Makefile.am
+++ b/third_party/gofrontend/libgo/Makefile.am
@@ -3688,7 +3688,6 @@
 	os/check \
 	path/check \
 	reflect/check \
-	regexp/check \
 	runtime/check \
 	sort/check \
 	strconv/check \
@@ -3787,7 +3786,6 @@
 	os/user/check \
 	path/filepath/check \
 	regexp/syntax/check \
-	runtime/pprof/check \
 	sync/atomic/check \
 	text/scanner/check \
 	text/tabwriter/check \
diff --git a/third_party/gofrontend/libgo/Makefile.in b/third_party/gofrontend/libgo/Makefile.in
index 2254478..d2482d1 100644
--- a/third_party/gofrontend/libgo/Makefile.in
+++ b/third_party/gofrontend/libgo/Makefile.in
@@ -2193,7 +2193,6 @@
 	os/check \
 	path/check \
 	reflect/check \
-	regexp/check \
 	runtime/check \
 	sort/check \
 	strconv/check \
@@ -2292,7 +2291,6 @@
 	os/user/check \
 	path/filepath/check \
 	regexp/syntax/check \
-	runtime/pprof/check \
 	sync/atomic/check \
 	text/scanner/check \
 	text/tabwriter/check \
diff --git a/update_third_party.sh b/update_third_party.sh
index a35d315..89c0ecd 100755
--- a/update_third_party.sh
+++ b/update_third_party.sh
@@ -25,6 +25,8 @@
 # Apply a diff that eliminates use of the unnamed struct extension beyond what
 # -fms-extensions supports.
 (cd third_party/gofrontend && patch -p1) < libgo-noext.diff
+# Apply a diff that disables testing of packages known to fail.
+(cd third_party/gofrontend && patch -p1) < libgo-check-failures.diff
 find third_party/gofrontend -name '*.orig' -exec rm \{\} \;
 
 # Remove GPL licensed files.