stdcxx-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <>
Subject [jira] Commented: (STDCXX-401) test suite should honor TMPDIR
Date Thu, 27 Mar 2008 22:14:24 GMT


Martin Sebor commented on STDCXX-401:

The POSIX function [tempnam|]
doesn't fully specify how the name of the directory is obtained when the {{dir}} argument
to the function is {{NULL}}. All known platforms (AIX, FreeBSD, HP-UX, IRIX, Linux, Solaris,
Tru64) implement the following behavior:

# use the {{TMPDIR}} environment variable if it is set to a valid directory, otherwise
# use the {{dir}} argument if it points to a valid directory, otherwise
# us the {{P_tmpdir}} macro if it is defined to a valid directory in {{<stdio.h>}},
# use {{/tmp}}

The {{P_tmpdir}} macro is {{#defined}} to {{/tmp}} on AIX, Linux and Tru64 UNIX, and to {{/var/tmp}}
on FreeBSD, HP-UX, Solaris, and IRIX.

> test suite should honor TMPDIR
> ------------------------------
>                 Key: STDCXX-401
>                 URL:
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Test Driver
>    Affects Versions: 4.1.3
>         Environment: most
>            Reporter: Martin Sebor
>            Assignee: Martin Sebor
>            Priority: Minor
>             Fix For: 4.2.1
>   Original Estimate: 2h
>  Remaining Estimate: 2h
> The test suite should honor the TMP environment variable and, when defined to a valid
value use it when creating temporary file names so that when the variable is defined to a
value other than the default /tmp (e.g., because /tmp is full or doesn't have sufficient capacity)
the test suite doesn't fail. See the helper function rw_tmpnam() defined in tests/src/file.cpp:

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message