From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by sourceware.org (Postfix) with ESMTPS id 72B123858D39 for ; Sun, 26 Mar 2023 20:00:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 72B123858D39 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-x329.google.com with SMTP id d11-20020a05600c3acb00b003ef6e6754c5so623742wms.5 for ; Sun, 26 Mar 2023 13:00:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679860845; x=1682452845; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=jgK73cIRJEX3ZQ5eavL37O5eM1HE+fJZF2ES9F34TDs=; b=WpL5/tHqn8Faioe2CuxxyczzpM5Nnx5TYXfVdzNbWOPC51lu0Fora4N6sOdRK4visp FvZNjaUN2a1XGpYEZSaTZ8U+BDM4MYPp+5Fc/gremg+FdAZPTab/RciS8pKvyy8kbi8P gmejd70CfwHr0Igxuoz27WmhD48EMY2dw6eQwB1Ne+MHoGN6dwVwrBpDWlX0z/Pqtk1c xnljq45bwthgTBNqgxMa4odYaV8peSe73eR8WRyjoinViYqIpDc8rxJR+Zbi61/eSAcZ 5l+GxTFperO48A44dExUSMPWJL4AefMK4uTPygw8diAzExQV6RO+Jzijwm+RSNr1YkW7 lXFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679860845; x=1682452845; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jgK73cIRJEX3ZQ5eavL37O5eM1HE+fJZF2ES9F34TDs=; b=2KBxQAJ80FlfhD6hyTTvoUPhzDLUgl3IimIAcQ1xcrE8miMuhYdg9julNgpyxARbz6 Lj5dbHq3bkTHAV+gRDnhhh5hopF5UIMgWj3xsNj1c1yOpDyIbIqcGbbXBf1s05kS5jmK cJApIYPM2aaBngB2XWG27O8RFgcXvWKiTyIl/+9dt9hGtQGg4hLuLnGdignBwxqPUUXw 1vxdxpCnFetSHQx3Agw0UgHIvpi8KXW1Myyh99p8xJYWhvHGpZhqsC22gQvQ+QL0atvc ixjX6YQdE9pvbPxPDdrq/IM0BWF4DOqiSz8NzDtWZ/K7dTR2J/rxiOI+A51LN3XFf9g+ Tp1w== X-Gm-Message-State: AO0yUKXW+knqoVtR+KNoP2jb9/dI53snGqpaCtfvwIBBmBmj/HbyJHkh sZtkWq/XL2uVzX3Q570Q4Gh5xoYy0dJs5Q== X-Google-Smtp-Source: AK7set94QEtvWpWsdXjW6w6XvS/frgF2WjMc6d8IRtI1TVWXgYGgXHoxw+BSRxgN+vuzjJokqhi1sg== X-Received: by 2002:a05:600c:470c:b0:3ee:7d85:e0d1 with SMTP id v12-20020a05600c470c00b003ee7d85e0d1mr8171642wmo.2.1679860844895; Sun, 26 Mar 2023 13:00:44 -0700 (PDT) Received: from localhost ([82.66.26.140]) by smtp.gmail.com with ESMTPSA id h21-20020a05600c315500b003ebff290a52sm6432173wmo.28.2023.03.26.13.00.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Mar 2023 13:00:44 -0700 (PDT) From: Romain Geissler X-Google-Original-From: Romain Geissler To: libc-alpha@sourceware.org Cc: romain.geissler@amadeus.com Subject: [PATCH 3/3] Fix tst-glibc-hwcaps-prepend-cache with custom configure prefix value Date: Sun, 26 Mar 2023 20:00:16 +0000 Message-Id: <20230326200016.219-4-romain.geissler@amadeus.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230326200016.219-1-romain.geissler@amadeus.com> References: <20230326200016.219-1-romain.geissler@amadeus.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --- elf/tst-glibc-hwcaps-prepend-cache.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/elf/tst-glibc-hwcaps-prepend-cache.c b/elf/tst-glibc-hwcaps-prepend-cache.c index 2a448423495..fe074b28028 100644 --- a/elf/tst-glibc-hwcaps-prepend-cache.c +++ b/elf/tst-glibc-hwcaps-prepend-cache.c @@ -44,9 +44,13 @@ do_test (void) if (dlopen (SONAME, RTLD_NOW) != NULL) FAIL_EXIT1 (SONAME " is already on the search path"); - /* Install the default implementation of libmarkermod1.so. */ - xmkdirp ("/etc", 0777); - support_write_file_string ("/etc/ld.so.conf", "/glibc-test/lib\n"); + { + /* Install the default implementation of libmarkermod1.so. */ + char *conf_path = xasprintf ("%s/ld.so.conf", support_sysconfdir_prefix); + xmkdirp (support_sysconfdir_prefix, 0777); + support_write_file_string (conf_path, "/glibc-test/lib\n"); + free (conf_path); + } xmkdirp ("/glibc-test/lib/glibc-hwcaps/prepend2", 0777); xmkdirp ("/glibc-test/lib/glibc-hwcaps/prepend3", 0777); { -- 2.31.1