From patchwork Thu Dec 6 09:40:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Xiao Yang X-Patchwork-Id: 1008664 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.linux.it (client-ip=213.254.12.146; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=cn.fujitsu.com Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 439Vvb0Vv7z9rxp for ; Thu, 6 Dec 2018 20:40:26 +1100 (AEDT) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id CAC783E6FFF for ; Thu, 6 Dec 2018 10:40:22 +0100 (CET) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-7.smtp.seeweb.it (in-7.smtp.seeweb.it [IPv6:2001:4b78:1:20::7]) by picard.linux.it (Postfix) with ESMTP id 276DD3E6FFF for ; Thu, 6 Dec 2018 10:40:20 +0100 (CET) Received: from heian.cn.fujitsu.com (mail.cn.fujitsu.com [183.91.158.132]) by in-7.smtp.seeweb.it (Postfix) with ESMTP id 2156C200B1E for ; Thu, 6 Dec 2018 10:40:17 +0100 (CET) X-IronPort-AV: E=Sophos;i="5.56,321,1539619200"; d="scan'208";a="49114449" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 06 Dec 2018 17:40:12 +0800 Received: from G08CNEXCHPEKD02.g08.fujitsu.local (unknown [10.167.33.83]) by cn.fujitsu.com (Postfix) with ESMTP id 42CB94B7349C for ; Thu, 6 Dec 2018 17:40:14 +0800 (CST) Received: from RHEL7U5GA_Intel64.g08.fujitsu.local (10.167.220.156) by G08CNEXCHPEKD02.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 6 Dec 2018 17:40:15 +0800 From: Xiao Yang To: Date: Thu, 6 Dec 2018 17:40:11 +0800 Message-ID: <1544089211-8138-1-git-send-email-yangx.jy@cn.fujitsu.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 X-Originating-IP: [10.167.220.156] X-yoursite-MailScanner-ID: 42CB94B7349C.A9619 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: yangx.jy@cn.fujitsu.com X-Spam-Status: No, score=0.0 required=7.0 tests=none autolearn=disabled version=3.4.0 X-Virus-Scanned: clamav-milter 0.99.2 at in-7.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on in-7.smtp.seeweb.it Subject: [LTP] [PATCH] openposix: Remove _XOPEN_SOURCE in strchr/strcpy/strncpy X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.18 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" We have defined _XOPEN_SOURCE to 600 by gcc -D in open_posix_testsuite/CFLAGS, So defining _XOPEN_SOURCE to different value in test results in a "_XOPEN_SOURCE redefined" warning. It seems that all of tests get pass even if _XOPEN_SOURCE is defined to 600 by default, so remove the duplicate _XOPEN_SOURCE in test. Signed-off-by: Xiao Yang --- testcases/open_posix_testsuite/conformance/interfaces/strchr/1-1.c | 1 - testcases/open_posix_testsuite/conformance/interfaces/strcpy/1-1.c | 1 - testcases/open_posix_testsuite/conformance/interfaces/strncpy/1-1.c | 1 - testcases/open_posix_testsuite/conformance/interfaces/strncpy/2-1.c | 1 - 4 files changed, 4 deletions(-) diff --git a/testcases/open_posix_testsuite/conformance/interfaces/strchr/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/strchr/1-1.c index 95eda79..611a64d 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/strchr/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/strchr/1-1.c @@ -25,7 +25,6 @@ * -Repeat the above all steps for given number of iterations. */ -#define _XOPEN_SOURCE 700 #include #include #include diff --git a/testcases/open_posix_testsuite/conformance/interfaces/strcpy/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/strcpy/1-1.c index 2fdc002..adfbfc3 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/strcpy/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/strcpy/1-1.c @@ -17,7 +17,6 @@ * -Also compare returned pointer with s2. */ -#define _XOPEN_SOURCE 700 #include #include #include diff --git a/testcases/open_posix_testsuite/conformance/interfaces/strncpy/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/strncpy/1-1.c index 3458015..396bd60 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/strncpy/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/strncpy/1-1.c @@ -20,7 +20,6 @@ * -Repeat the above steps for given number of iterations. */ -#define _XOPEN_SOURCE 700 #include #include #include diff --git a/testcases/open_posix_testsuite/conformance/interfaces/strncpy/2-1.c b/testcases/open_posix_testsuite/conformance/interfaces/strncpy/2-1.c index a7761c5..2a20872 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/strncpy/2-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/strncpy/2-1.c @@ -20,7 +20,6 @@ * -Repeat the above steps for given number of iterations. */ -#define _XOPEN_SOURCE 700 #include #include #include