From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7267AEDEC53 for ; Wed, 13 Sep 2023 14:05:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694613948; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=lQD7pjdYQVQfTGSv1ddBKOF9Ry3S4omJsl/LaH8EeBY=; b=CJp09mga5Zl+8etlynD6x4bBn+2pwY/RsYFYxtFo8SpAa7HYtjgxctEw4bmAax/MhbMbpT 0h0PY5JpBdRIz4yRrtsPVi56+wWFnkuhZdTfN1XBvW1C23+u/jpbbArN1YtFkHynCvfCmj kWuuU5BMEeJ5xgXXIjA/vpPfamZSnr4= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-18-ErRTcSwEO1WmfStGtR_YSQ-1; Wed, 13 Sep 2023 10:05:44 -0400 X-MC-Unique: ErRTcSwEO1WmfStGtR_YSQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 13D86916E85; Wed, 13 Sep 2023 14:05:42 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id AD7E22156722; Wed, 13 Sep 2023 14:05:41 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 5D45F19465B5; Wed, 13 Sep 2023 14:05:41 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 3695A19465B1 for ; Wed, 13 Sep 2023 14:05:35 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 1177640C200B; Wed, 13 Sep 2023 14:05:35 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast04.extmail.prod.ext.rdu2.redhat.com [10.11.55.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 09F5440C200A for ; Wed, 13 Sep 2023 14:05:35 +0000 (UTC) Received: from us-smtp-inbound-delivery-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id DEE6F102F248 for ; Wed, 13 Sep 2023 14:05:34 +0000 (UTC) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-156-evB3RJCYNLCi4jIbf3qZFw-1; Wed, 13 Sep 2023 10:05:31 -0400 X-MC-Unique: evB3RJCYNLCi4jIbf3qZFw-1 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id DD7191F390; Wed, 13 Sep 2023 14:05:29 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id B901613582; Wed, 13 Sep 2023 14:05:29 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id WQCZK6nBAWWCWAAAMHmgww (envelope-from ); Wed, 13 Sep 2023 14:05:29 +0000 Message-ID: <4b9f48e49a8b406572f59cb060ca36f2e72370db.camel@suse.com> From: Martin Wilck To: Benjamin Marzinski Date: Wed, 13 Sep 2023 16:05:29 +0200 In-Reply-To: <20230912232004.GV7412@octiron.msp.redhat.com> References: <20230911163846.27197-1-mwilck@suse.com> <20230911163846.27197-27-mwilck@suse.com> <20230912232004.GV7412@octiron.msp.redhat.com> User-Agent: Evolution 3.48.4 MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 Subject: Re: [dm-devel] [PATCH v2 26/37] multipath-tools tests: add test for ordering of bindings X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dm-devel@redhat.com Errors-To: dm-devel-bounces@redhat.com Sender: "dm-devel" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: suse.com Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable On Tue, 2023-09-12 at 18:20 -0500, Benjamin Marzinski wrote: > On Mon, Sep 11, 2023 at 06:38:35PM +0200, mwilck@suse.com=A0wrote: > > From: Martin Wilck > >=20 > > As the assignment of free aliases now relies on the bindings being > > properly sorted, add some unit tests to make sure the sorting > > algorithm > > works. >=20 > On second thought... >=20 > >=20 >=20 > If you start at 0, fill_bindings_random() will get the WWID ending > from > random_numbers[-1]. >=20 > -Ben Oops, thanks for spotting it. Martin -- dm-devel mailing list dm-devel@redhat.com https://listman.redhat.com/mailman/listinfo/dm-devel