From patchwork Thu Jun 20 11:30:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Ivchenko X-Patchwork-Id: 252880 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]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 6C8052C007E for ; Thu, 20 Jun 2013 21:30:44 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:content-type; q= dns; s=default; b=ABcmUYFayXgaz1Q6fxBF8TXiW/MSs8aCVaXVDttua3e3bB qeFA23QytiJajaB3k917m17Wx5sgdB44gUn8LvCjfaZXDg0VqlwT5StDQhqSUT+q JGlIH9UnZARk2+c0K5zcHN4LCUnO4/amK3iGZXG8HF69jW9KcSq16Okjarjq0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:content-type; s= default; bh=0KOlNky2svuBPVCgyC72orjoUXo=; b=yjfbrOi9BD/6TrPoqKGB +rd3xHBJCxN4DarjvWIANd8PzEGJd/p1NGvOaHJFdNKirKK93pIoOUX071jBCpy1 z+c+bk0tIZ0lw7pBUwakPDOC7UgnIsccxp0IJSeXQaLThX0haDNgA4Km4xOn4vbF S/jEJBulD+9xUw+H3u/FPO0= Received: (qmail 16746 invoked by alias); 20 Jun 2013 11:30:38 -0000 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 Received: (qmail 16735 invoked by uid 89); 20 Jun 2013 11:30:38 -0000 X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE, SPF_PASS autolearn=ham version=3.3.1 Received: from mail-pa0-f41.google.com (HELO mail-pa0-f41.google.com) (209.85.220.41) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 20 Jun 2013 11:30:37 +0000 Received: by mail-pa0-f41.google.com with SMTP id bj3so6227371pad.14 for ; Thu, 20 Jun 2013 04:30:35 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.68.239.66 with SMTP id vq2mr6895452pbc.182.1371727835471; Thu, 20 Jun 2013 04:30:35 -0700 (PDT) Received: by 10.68.13.230 with HTTP; Thu, 20 Jun 2013 04:30:35 -0700 (PDT) Date: Thu, 20 Jun 2013 15:30:35 +0400 Message-ID: Subject: [testsuite, android] Disabling thread_local4.C and thread_local4g.C for Android. From: Alexander Ivchenko To: GCC Patches Hi, for Android: FAIL: g++.dg/tls/thread_local4.C -std=gnu++11 (test for excess errors) Excess errors: <>/gcc/testsuite/g++.dg/tls/thread_local4.C:31:26: error: 'pthread_testcancel' was not declared in this scope <>/gcc/testsuite/g++.dg/tls/thread_local4.C:40:24: error: 'pthread_cancel' was not declared in this scope the same for thread_local4g.C. from http://www.kandroid.org/ndk/docs/system/libc/OVERVIEW.html "pthread_cancel() will not be supported in Bionic, because doing this would involve making the C library significantly bigger for very little benefit. <...>" The following patch switches those tests off for Android. is it ok for trunk? --Alexander diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b8073d1..d217e4d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2013-06-19 Alexander Ivchenko + + * g++.dg/tls/thread_local4.C: Disable test for Android. + * g++.dg/tls/thread_local4g.C: Ditto. + 2013-06-11 Tobias Burnus PR fortran/57508 diff --git a/gcc/testsuite/g++.dg/tls/thread_local4.C b/gcc/testsuite/g++.dg/tls/thread_local4.C index acf1cae..cc1a35a 100644 --- a/gcc/testsuite/g++.dg/tls/thread_local4.C +++ b/gcc/testsuite/g++.dg/tls/thread_local4.C @@ -1,6 +1,7 @@ // Test for cleanups with pthread_cancel. -// { dg-do run } +// There is no support of pthread_cancel in Android. +// { dg-do run { target { ! *-*-android* } } } // { dg-require-effective-target c++11 } // { dg-require-effective-target tls_runtime } // { dg-require-effective-target pthread } diff --git a/gcc/testsuite/g++.dg/tls/thread_local4g.C b/gcc/testsuite/g++.dg/tls/thread_local4g.C index f5bc3ff..756c6a2 100644 --- a/gcc/testsuite/g++.dg/tls/thread_local4g.C +++ b/gcc/testsuite/g++.dg/tls/thread_local4g.C @@ -1,6 +1,7 @@ // Test for cleanups with pthread_cancel. -// { dg-do run } +// There is no support of pthread_cancel in Android. +// { dg-do run { target { ! *-*-android* } } } // { dg-require-effective-target c++11 } // { dg-require-effective-target tls_runtime } // { dg-require-effective-target pthread }