[
https://issues.apache.org/jira/browse/STDCXX-401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582811#action_12582811
]
Martin Sebor commented on STDCXX-401:
-------------------------------------
The POSIX function
[tempnam|http://www.opengroup.org/onlinepubs/009695399/functions/tempnam.html]
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>}}, otherwise
# 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: https://issues.apache.org/jira/browse/STDCXX-401
> 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:
> http://svn.apache.org/repos/asf/incubator/stdcxx/trunk/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.