Bug 294054 - Add unit test for rtld_set_var
Summary: Add unit test for rtld_set_var
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: tests (show other bugs)
Version: 16.0-CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Konstantin Belousov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-03-26 02:07 UTC by Alex S
Modified: 2026-07-16 22:53 UTC (History)
2 users (show)

See Also:
ngie: mfc-stable14-


Attachments
rtld_set_var test (1.86 KB, patch)
2026-03-26 02:07 UTC, Alex S
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex S 2026-03-26 02:07:58 UTC
Created attachment 269119 [details]
rtld_set_var test

Here's a basic test for rtld_set_var (per request elsewhere).
Comment 1 commit-hook freebsd_committer freebsd_triage 2026-03-26 23:42:52 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=9f16078b5f8c44d5718ecc940ab0b4ed5a1877a5

commit 9f16078b5f8c44d5718ecc940ab0b4ed5a1877a5
Author:     Alex S <iwtcex@gmail.com>
AuthorDate: 2026-03-25 00:56:01 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-03-26 23:41:23 +0000

    rtld: add a test for rtld_set_var (with LIBRARY_PATH_FDS)

    PR:     294054
    Reviewed by:    kib
    MFC after:      1 week

 libexec/rtld-elf/tests/Makefile             |  1 +
 libexec/rtld-elf/tests/set_var_test.c (new) | 38 +++++++++++++++++++++++++++++
 2 files changed, 39 insertions(+)
Comment 2 commit-hook freebsd_committer freebsd_triage 2026-04-02 02:17:58 UTC
A commit in branch stable/15 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=a91b3076688311397630d37b4c093f5f18680cec

commit a91b3076688311397630d37b4c093f5f18680cec
Author:     Alex S <iwtcex@gmail.com>
AuthorDate: 2026-03-25 00:56:01 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-04-02 02:13:50 +0000

    rtld: add a test for rtld_set_var (with LIBRARY_PATH_FDS)

    PR:     294054

    (cherry picked from commit 9f16078b5f8c44d5718ecc940ab0b4ed5a1877a5)

 libexec/rtld-elf/tests/Makefile             |  1 +
 libexec/rtld-elf/tests/set_var_test.c (new) | 38 +++++++++++++++++++++++++++++
 2 files changed, 39 insertions(+)
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2026-07-15 23:00:54 UTC
^Triage: assign to committer.  (If no MFC to 14 is planned, please just close.)