From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) by sourceware.org (Postfix) with ESMTPS id 08B973858D29 for ; Mon, 22 Mar 2021 20:23:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 08B973858D29 Received: by mail-qk1-x730.google.com with SMTP id z10so12016121qkz.13 for ; Mon, 22 Mar 2021 13:23:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=7Hy7yCaQBrvDt/clmbKUZaI/z2ZbbPiOKm5BKaaydI8=; b=eHVCQnplvMc+lbsCFdl179lYJuqSMiq6lddWFhUmSPLody2Nxz5LXCrGPl+IBWgulM /lCjgQfzVlR+bBXkkYUY9lNBWbBpRttGaoQEeotQK7fnK59dnQFcUY6SBzDjl1ERwIlm bBMClgPdliD9gaejcoJPTX2lJLjcc2QLLqCOybSNAarAzF36hk7DsZNXXPrn+AhzEuDA fxevtI2w3BzwC4MnHI+gKfRmlWQ7+InNES6nF9Lobza/f3mo70Ja/ilfKJ2znBY7SYT2 8XEN03hxMjKI9/q/13mQFBarKmDfNEr4FXGD1QAlgx3DHHlr3biW3Ysf8aMDLVWB0bI8 Tdxw== X-Gm-Message-State: AOAM533kFVvw9AShqqqYWXN1+AY5ums6NoVNVIAX87NXtYBASK57zRMa 3oYB8RHmK1BcYhQTH0ePpnSMFgseK7bM0w== X-Google-Smtp-Source: ABdhPJywxm07GNtRwGKBQWv3rcaYhvsPSMj39DQINvjMLgGApMJjlI01z2X63xElg3YI6yvGQW0Cbw== X-Received: by 2002:a37:a016:: with SMTP id j22mr1961282qke.486.1616444598503; Mon, 22 Mar 2021 13:23:18 -0700 (PDT) Received: from ?IPv6:2804:18:844:62ae:d820:43e4:85c0:4786? ([2804:18:844:62ae:d820:43e4:85c0:4786]) by smtp.gmail.com with ESMTPSA id 18sm11969034qkr.77.2021.03.22.13.23.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 Mar 2021 13:23:18 -0700 (PDT) Subject: Re: [PATCH v2 2/2] tst: Add test for ntp_gettimex To: Lukasz Majewski Cc: GNU C Library References: <20210310130056.23926-1-lukma@denx.de> <20210310130056.23926-2-lukma@denx.de> From: Adhemerval Zanella Message-ID: <196d0cd2-26ad-4ea4-eb45-771453a652fd@linaro.org> Date: Mon, 22 Mar 2021 17:23:15 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20210310130056.23926-2-lukma@denx.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-13.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2021 20:23:20 -0000 On 10/03/2021 10:00, Lukasz Majewski wrote: > This test is a wrapper on tst-ntp_gettime test. Ok. Reviewed-by: Adhemerval Zanella > --- > sysdeps/unix/sysv/linux/Makefile | 2 +- > sysdeps/unix/sysv/linux/tst-ntp_gettimex.c | 21 +++++++++++++++++++++ > 2 files changed, 22 insertions(+), 1 deletion(-) > create mode 100644 sysdeps/unix/sysv/linux/tst-ntp_gettimex.c > > diff --git a/sysdeps/unix/sysv/linux/Makefile b/sysdeps/unix/sysv/linux/Makefile > index 8a07870cb4..e7f733eacf 100644 > --- a/sysdeps/unix/sysv/linux/Makefile > +++ b/sysdeps/unix/sysv/linux/Makefile > @@ -113,7 +113,7 @@ tests += tst-clone tst-clone2 tst-clone3 tst-fanotify tst-personality \ > tst-tgkill tst-sysvsem-linux tst-sysvmsg-linux tst-sysvshm-linux \ > tst-timerfd tst-ppoll tst-futimens tst-utime tst-utimes \ > tst-clock_adjtime tst-adjtimex tst-ntp_adjtime tst-futimes \ > - tst-lutimes tst-ntp_gettime > + tst-lutimes tst-ntp_gettime tst-ntp_gettimex > tests-internal += tst-ofdlocks-compat tst-sigcontext-get_pc > tests-time64 += \ > tst-futimes-time64\ > diff --git a/sysdeps/unix/sysv/linux/tst-ntp_gettimex.c b/sysdeps/unix/sysv/linux/tst-ntp_gettimex.c > new file mode 100644 > index 0000000000..3865dd3083 > --- /dev/null > +++ b/sysdeps/unix/sysv/linux/tst-ntp_gettimex.c > @@ -0,0 +1,21 @@ > +/* Test for ntp_gettimex > + Copyright (C) 2021 Free Software Foundation, Inc. > + This file is part of the GNU C Library. > + > + The GNU C Library is free software; you can redistribute it and/or > + modify it under the terms of the GNU Lesser General Public > + License as published by the Free Software Foundation; either > + version 2.1 of the License, or (at your option) any later version. > + > + The GNU C Library is distributed in the hope that it will be useful, > + but WITHOUT ANY WARRANTY; without even the implied warranty of > + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU > + Lesser General Public License for more details. > + > + You should have received a copy of the GNU Lesser General Public > + License along with the GNU C Library; if not, see > + . */ > + > +#define NTP_GETTIME_SYSCALL ntp_gettimex > + > +#include >