From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#42095: 28.0.50; Build fails on Windows/MinGW64 Date: Mon, 29 Jun 2020 09:56:42 -0700 Organization: UCLA Computer Science Department Message-ID: <457a9fed-b942-dd3a-21fe-6c11375a12e9@cs.ucla.edu> References: <878sg819n2.fsf@klingenberg.no> <83bll32ntx.fsf@gnu.org> <83v9jb0yqb.fsf@gnu.org> <83tuyu1u6z.fsf@gnu.org> <83lfk52abx.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------BAEB7D978F92D691120B18E4" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="7924"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 Cc: peder@klingenberg.no, 42095@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 29 18:57:09 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jpx5h-00020o-An for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Jun 2020 18:57:09 +0200 Original-Received: from localhost ([::1]:43796 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jpx5g-00063h-9T for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Jun 2020 12:57:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59770) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jpx5a-00063L-AQ for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2020 12:57:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37747) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jpx5a-0001ad-1p for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2020 12:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jpx5a-0002KK-12 for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2020 12:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Jun 2020 16:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42095 X-GNU-PR-Package: emacs Original-Received: via spool by 42095-submit@debbugs.gnu.org id=B42095.15934498158921 (code B ref 42095); Mon, 29 Jun 2020 16:57:01 +0000 Original-Received: (at 42095) by debbugs.gnu.org; 29 Jun 2020 16:56:55 +0000 Original-Received: from localhost ([127.0.0.1]:49293 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jpx5T-0002Jp-9q for submit@debbugs.gnu.org; Mon, 29 Jun 2020 12:56:55 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:33116) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jpx5Q-0002JW-Bm for 42095@debbugs.gnu.org; Mon, 29 Jun 2020 12:56:54 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id B323E1600E9; Mon, 29 Jun 2020 09:56:46 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id Af8JffPW0WBu; Mon, 29 Jun 2020 09:56:46 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id EBFDE1600EA; Mon, 29 Jun 2020 09:56:45 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ahQrgolfqCRi; Mon, 29 Jun 2020 09:56:45 -0700 (PDT) Original-Received: from [192.168.1.9] (cpe-75-82-69-226.socal.res.rr.com [75.82.69.226]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id BF0E51600E9; Mon, 29 Jun 2020 09:56:45 -0700 (PDT) Autocrypt: addr=eggert@cs.ucla.edu; prefer-encrypt=mutual; keydata= LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tCgptUUlOQkV5QWNtUUJFQURB QXlIMnhvVHU3cHBHNUQzYThGTVpFb243NGRDdmM0K3ExWEEySjJ0QnkycHdhVHFmCmhweHhk R0E5Smo1MFVKM1BENGJTVUVnTjh0TFowc2FuNDdsNVhUQUZMaTI0NTZjaVNsNW04c0thSGxH ZHQ5WG0KQUF0bVhxZVpWSVlYL1VGUzk2ZkR6ZjR4aEVtbS95N0xiWUVQUWRVZHh1NDd4QTVL aFRZcDVibHRGM1dZRHoxWQpnZDdneDA3QXV3cDdpdzdlTnZub0RUQWxLQWw4S1lEWnpiRE5D UUdFYnBZM2VmWkl2UGRlSStGV1FONFcra2doCnkrUDZhdTZQcklJaFlyYWV1YTdYRGRiMkxT MWVuM1NzbUUzUWpxZlJxSS9BMnVlOEpNd3N2WGUvV0szOEV6czYKeDc0aVRhcUkzQUZINmls QWhEcXBNbmQvbXNTRVNORnQ3NkRpTzFaS1FNcjlhbVZQa25qZlBtSklTcWRoZ0IxRApsRWR3 MzRzUk9mNlY4bVp3MHhmcVQ2UEtFNDZMY0ZlZnpzMGtiZzRHT1JmOHZqRzJTZjF0azVlVThN Qml5Ti9iClowM2JLTmpOWU1wT0REUVF3dVA4NGtZTGtYMndCeHhNQWhCeHdiRFZadWR6eERa SjFDMlZYdWpDT0pWeHEya2wKakJNOUVUWXVVR3FkNzVBVzJMWHJMdzYrTXVJc0hGQVlBZ1Jy NytLY3dEZ0JBZndoU In-Reply-To: <83lfk52abx.fsf@gnu.org> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:182536 Archived-At: This is a multi-part message in MIME format. --------------BAEB7D978F92D691120B18E4 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit On 6/29/20 7:52 AM, Eli Zaretskii wrote: > I meant to make sure it works when invoked from Emacs. I added the attached. --------------BAEB7D978F92D691120B18E4 Content-Type: text/x-patch; charset=UTF-8; name="0001-test-src-fns-tests.el-test-secure-hash-Test-getrando.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-test-src-fns-tests.el-test-secure-hash-Test-getrando.pa"; filename*1="tch" >From d0872638b4f6330bdece465d6cbf5c1d85306c35 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 29 Jun 2020 09:54:45 -0700 Subject: [PATCH] * test/src/fns-tests.el (test-secure-hash): Test getrandom format. --- test/src/fns-tests.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/src/fns-tests.el b/test/src/fns-tests.el index b65543a64b..f1faf58659 100644 --- a/test/src/fns-tests.el +++ b/test/src/fns-tests.el @@ -890,6 +890,8 @@ test-secure-hash (should (equal (secure-hash 'sha512 "foobar") (concat "0a50261ebd1a390fed2bf326f2673c145582a6342d5" "23204973d0219337f81616a8069b012587cf5635f69" - "25f1b56c360230c19b273500ee013e030601bf2425")))) - -(provide 'fns-tests) + "25f1b56c360230c19b273500ee013e030601bf2425"))) + ;; Test that a call to getrandom returns the right format. + ;; This does not test randomness; it's merely a format check. + (should (string-match "\\`[0-9a-f]\\{128\\}\\'" + (secure-hash 'sha512 'iv-auto 100)))) -- 2.17.1 --------------BAEB7D978F92D691120B18E4--