From patchwork Wed Jan 10 14:20:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Gao X-Patchwork-Id: 1885000 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=lists.linux.it header.i=@lists.linux.it header.a=rsa-sha256 header.s=picard header.b=MTbrNRQT; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=suse.com header.i=@suse.com header.a=rsa-sha256 header.s=selector1 header.b=DUU23FBh; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=patchwork.ozlabs.org) Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4T992g31j8z1xqk for ; Thu, 11 Jan 2024 01:21:15 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.linux.it; i=@lists.linux.it; q=dns/txt; s=picard; t=1704896472; h=to : date : message-id : mime-version : subject : list-id : list-unsubscribe : list-archive : list-post : list-help : list-subscribe : from : reply-to : content-type : content-transfer-encoding : sender : from; bh=Kp1yQ177Yr13lzGxYobxIX+4IfZOcEDBy1HSWtYljX4=; b=MTbrNRQTcw/4Wr3+GzDNmaFDjQaaaegU0bZPNqIVRC05i+GqDtMjA/DOTrKrxR2zc219N 3miLi2LoD3eVlBdSlBsgHnBoRqUTPGttKyUkfHvyCbHE7F0IXxhBDPWdr69EdI8N18SKr/w rHecqY4omQgOY1DJQDma8AYXkOwLdjg= Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 7DC803CE4B5 for ; Wed, 10 Jan 2024 15:21:12 +0100 (CET) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-6.smtp.seeweb.it (in-6.smtp.seeweb.it [IPv6:2001:4b78:1:20::6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 8B7AA3C08CF for ; Wed, 10 Jan 2024 15:21:09 +0100 (CET) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on20600.outbound.protection.outlook.com [IPv6:2a01:111:f403:2612::600]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by in-6.smtp.seeweb.it (Postfix) with ESMTPS id 0310214098AC for ; Wed, 10 Jan 2024 15:21:07 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CmlDyT3FlnVnphhzvsxewT7LfGU2tyGXv04qmkdQqtP5SUlViyEl0EcmllNCNXWQqFaHeUWjSnVUnCqD5CoqkVE4kTLLSZ9O7N4l8kKVKvxG+t0+wyXD8LQcj+XhPSSdUR3MXxk4emEehznn6rlr3cEKSb4jxpxOYzqkTPDrmtzYvLXJiZGkDLr3g/262pj8GahUNP+Zqs99jG4spVruEZvl1XBEUzc/w3EZjqV3qqLtvUuiBzW/6pJs3AmTr2SCPo5wiGlTXuuQdqhdHX9XW6GEEyfYU1Wd/eVD3EJDCiuvGG8CzSEVh8+QhNga3CQrY3iyDZsyGDA5k+CVFm6gkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=zpvIe+XEZylFH5rMZUygWQ6gFtuy4P43w0YuJpzIhVU=; b=ZiYcoR31kmSqcOHVr+a30DTPMmDtSpPb4hHFCfpPW+fj61LvgVyi1ya6idKxdo+xnUaxjr7LZsFrWwkbGy0BMboWA4jiQAAHMMxHMHQ9RVC7goFpC6WyMujijx89crz6lkQhwKMh6L63uI9zujKinXPtruDPpiylFnn38mELvbTB/mL/gpESj4AvVuc1p9PHLPB0WeyXsydr4f4fD5ikRwJXhtSTPBn9y/djC+uc9CvjGI2J7S2+QKt9lVI/mmb/aZgzoYuD7qztb25Ci2rWtXwlb/kGwTzpRq5yDYyUPLwx81DeQw87aL/Ny8aDoUQPcDTAq4tlHDv5kaNU1CFxPQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zpvIe+XEZylFH5rMZUygWQ6gFtuy4P43w0YuJpzIhVU=; b=DUU23FBh2TyUxbIxZ4jJk8ukHk00jrt0pzLphry+Q5bQCCC4C1/BHRuopji3nMgp6tnsZnxzuV/PBybOrm1Sur1oKJ/uSNJUKbDSuBRD6hnavQKKSa9KqgaEvZzB6lQkZABdujDGFR+1qd4VC73EjO4kPKeWpgueCXPZ6YrcGmTnKECUxY1q43W14uYCmmYI+1YytfCtbV3NSTj76Kaz2IP/2nmcEjt8HlMSfPovtbTlF3+6OhZS4sVevxBEVgaOaWDmWQg34K3Pmcwgu3+hFEkJJiWhi4cpZyRIeZ6cUU70+WhwYmChIVR02cIBGTNjq1xOk92E/cz7qGxeOks4ZA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com; Received: from AS8PR04MB8199.eurprd04.prod.outlook.com (2603:10a6:20b:3f6::21) by AS8PR04MB8801.eurprd04.prod.outlook.com (2603:10a6:20b:42c::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.27; Wed, 10 Jan 2024 14:21:06 +0000 Received: from AS8PR04MB8199.eurprd04.prod.outlook.com ([fe80::c9bf:bb1e:181d:a2f4]) by AS8PR04MB8199.eurprd04.prod.outlook.com ([fe80::c9bf:bb1e:181d:a2f4%4]) with mapi id 15.20.7181.015; Wed, 10 Jan 2024 14:21:06 +0000 To: ltp@lists.linux.it Date: Wed, 10 Jan 2024 09:20:58 -0500 Message-Id: <20240110142058.31359-1-wegao@suse.com> X-Mailer: git-send-email 2.35.3 X-ClientProxiedBy: TYCPR01CA0179.jpnprd01.prod.outlook.com (2603:1096:400:2b2::14) To AS8PR04MB8199.eurprd04.prod.outlook.com (2603:10a6:20b:3f6::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8199:EE_|AS8PR04MB8801:EE_ X-MS-Office365-Filtering-Correlation-Id: f051c3db-d544-4ea6-4271-08dc11e761d5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Npxt5cmoHnc3rogvdrHleaTmmTbsCiD2B4v2byyKygb4Fn4YgrAGqXmiuZihGgnkUzUV8MOxb6ZSss9mdhaMmOTLuj1FEK2Sl7NP188poxveKJKIZ0o4Stdg2KSDx6kbJP+IxQS+tTKk+V2fSrL9MVMtDpeGVFi6xl6em1qkw2h7qWZJYYRvj+3m9Sp/wXEuJI5vCfQFA6wjDF0ZHmxhPp6xt0++8cnQf6XCLwyzl1zRJ9/AjcKdOYR1FzROfGd5eOqxfiWpYe24bAjHda7xfMHNzXGWk3wcaC4iBP2gQJT6k/xEMRwjtHCuPPTNa7b6SGXSBCAI400dFQJ71F8MdVvQtJzZ7B+PJk3boVx86LdiUQineJeW1lE4v0SpTctj/HvA02we5kHIEQjIwLNpSk1SBsik0fGLK6nsC/06TL2kJBQX1lmDgAEuzG679BXDzI+AqHLAe/Ufqn6gqdEfdgaipivAjKbUbs0Yy1bNA90m8hmAB+JVi2A88DRAj3oqvn+YaBMfsxoLmmdtMdCW+hkd40zCUbFC93RS5evKzs2zcGhUlsOZMIK0LFqN8pfn X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR04MB8199.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(39850400004)(366004)(396003)(376002)(136003)(346002)(230922051799003)(451199024)(1800799012)(186009)(64100799003)(83380400001)(107886003)(1076003)(5660300002)(6506007)(6512007)(2616005)(26005)(38100700002)(4326008)(8676002)(8936002)(6666004)(2906002)(6486002)(66946007)(478600001)(66556008)(6916009)(316002)(66476007)(41300700001)(36756003)(86362001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 28Yv/WUWhVEh4Adlng3uiSKXyk7jpLZp1Os2b7InsnyMkMHBNbfluakDnINhPlG5TdOWdnf2+Br3uWc/jdVkdWfGkuevg1GfOKZ2nVqh10Wp2dj5SwOGySxyLtlDsegr7fpzR+pwL+2tMmzctszdO36cRYeCPCGEN4auJMYW/5AxKBYdrpSdjZ7z39fphyLqcB8i9Pw6vtAUUwZuWzywWKCRT20tBTetqAgpZNbIhbXJ2uQvcizwAoaEdsa+3U/qW/KIOEAkn7RYiFnjuXBfvMlRi6jX2MKVaqllRCGISilmhbOOojiDd6z7mf855PI3G27Jt7t7X//MypzFKEPLJ6fxM7xnA3u2MFR3ArjQvqJnklAGW4yDd9R7ybN2oF49mREIuVL5ch8BVJXi+tDWJeDl5IsPh9/OrrCP3mkgjoXdrZPAYuWRXaAaEk8gW5ETnl7uq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/VX4u+GfvVYLN53LFteOK1t7GHfXvCf7ul5iF/lzFg5j4GoSUk= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: f051c3db-d544-4ea6-4271-08dc11e761d5 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8199.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2024 14:21:05.9704 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: BftgMlHp7WkiYwFo90CJp8gJdBP/QGQngJ3QRrChLRcVUo3f1PhsbboAyBQ9pIK3 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8801 X-Virus-Scanned: clamav-milter 1.0.3 at in-6.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=ARC_SIGNED,ARC_VALID, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=disabled version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on in-6.smtp.seeweb.it Subject: [LTP] [PATCH v1] getcwd: Fix description format X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Wei Gao via ltp From: Wei Gao Reply-To: Wei Gao Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" Signed-off-by: Wei Gao --- testcases/kernel/syscalls/getcwd/getcwd02.c | 12 +++++++----- testcases/kernel/syscalls/getcwd/getcwd03.c | 14 ++++++++------ 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/testcases/kernel/syscalls/getcwd/getcwd02.c b/testcases/kernel/syscalls/getcwd/getcwd02.c index cb111a698..e3df22ceb 100644 --- a/testcases/kernel/syscalls/getcwd/getcwd02.c +++ b/testcases/kernel/syscalls/getcwd/getcwd02.c @@ -3,12 +3,14 @@ * Copyright (c) International Business Machines Corp., 2001 */ -/* - * DESCRIPTION +/*\ + * [Description] + * * Testcase to check the basic functionality of the getcwd(2) system call. - * 1) getcwd(2) works fine if buf and size are valid. - * 2) getcwd(2) works fine if buf points to NULL and size is set to 0. - * 3) getcwd(2) works fine if buf points to NULL and size is greater than strlen(path). + * + * 1. getcwd(2) works fine if buf and size are valid. + * 2. getcwd(2) works fine if buf points to NULL and size is set to 0. + * 3. getcwd(2) works fine if buf points to NULL and size is greater than strlen(path). */ #include diff --git a/testcases/kernel/syscalls/getcwd/getcwd03.c b/testcases/kernel/syscalls/getcwd/getcwd03.c index 97f4f3a33..85a4ecf24 100644 --- a/testcases/kernel/syscalls/getcwd/getcwd03.c +++ b/testcases/kernel/syscalls/getcwd/getcwd03.c @@ -3,18 +3,20 @@ * Copyright (c) International Business Machines Corp., 2001 */ -/* - * DESCRIPTION +/*\ + * [Description] + * * Testcase to check the basic functionality of the getcwd(2) * system call on a symbolic link. * * ALGORITHM - * 1) create a directory, and create a symbolic link to it at the + * + * 1. create a directory, and create a symbolic link to it at the * same directory level. - * 2) get the working directory of a directory, and its pathname. - * 3) get the working directory of a symbolic link, and its pathname, + * 2. get the working directory of a directory, and its pathname. + * 3. get the working directory of a symbolic link, and its pathname, * and its readlink info. - * 4) compare the working directories and link information. + * 4. compare the working directories and link information. */ #define _GNU_SOURCE 1