Skip to content

Commit 480bef8

Browse files
committed
Move the documentation of %{temp} to where other substitutions are documented
We should document everything in the same place, but for now let's be consistent.
1 parent ceb46dc commit 480bef8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

libcxx/docs/TestingLibcxx.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -415,9 +415,6 @@ writing tests easier. See `libc++-specific Lit Directives`_ for more information
415415
* - Directive
416416
- Parameters
417417
- Usage
418-
* - ``%{temp}``
419-
- N/A
420-
- This directive points to a temporary directory unique to the test.
421418
* - ``FILE_DEPENDENCIES``
422419
- ``// FILE_DEPENDENCIES: file, directory, /path/to/file, ...``
423420
- The paths given to the ``FILE_DEPENDENCIES`` directive can specify directories or specific files upon which a given test depend. For example, a test that requires some test

libcxx/utils/libcxx/test/format.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,10 @@ class CxxStandardLibraryTest(lit.formats.FileBasedTest):
261261
%{run}
262262
Equivalent to `%{exec} %t.exe`. This is intended to be used
263263
in conjunction with the %{build} substitution.
264+
265+
%{temp}
266+
This substitution expands to a non-existent temporary path unique to the test.
267+
It is typically used to create a temporary directory.
264268
"""
265269

266270
def getTestsForPath(self, testSuite, pathInSuite, litConfig, localConfig):

0 commit comments

Comments
 (0)