summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2022-04-14 14:41:45 (GMT)
committerMats Wichmann <mats@linux.com>2024-09-14 19:17:24 (GMT)
commitf72ce398663eedd1e57ac3483781a5a5fc390752 (patch)
tree7a42c176333aa1816fb50004571c6e4519f726d4 /test
parentaad42dd6eeb9b1fe8756895f2567b25ef8e7d82f (diff)
downloadSCons-f72ce398663eedd1e57ac3483781a5a5fc390752.zip
SCons-f72ce398663eedd1e57ac3483781a5a5fc390752.tar.gz
SCons-f72ce398663eedd1e57ac3483781a5a5fc390752.tar.bz2
Update docs and usage of TEMPFILE/TempFileMunge
tempfiles are now cleaned up via registering a cleanups with atexit(), instead of trying to squeeze removing the file into the command line. On Windows that caused the file to get deleted too early (did not work well with interactive mode), and on Linux it didn't remove the file at all. The Platform test expected to be able to read the tempfilename as the last argument of the "command", but this is no longer provided as the "rm filename" is no longer added, so now it has to chop off the prefix from the command-file argument to get the filename. Unrelatedly, two syntax warnings that turn up in the test output where some TeX syntax was listed in a docstring in a test are fixed by making that a raw string - got tired of seeing these. Fixes #4595 Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'test')
-rw-r--r--test/TEX/glossaries.py2
-rw-r--r--test/TEX/subdir_variantdir_include2.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/TEX/glossaries.py b/test/TEX/glossaries.py
index 069fcc3..d418ee2 100644
--- a/test/TEX/glossaries.py
+++ b/test/TEX/glossaries.py
@@ -23,7 +23,7 @@
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-"""
+r"""
Validate that use of \glossaries in TeX source files causes SCons to
be aware of the necessary created glossary files.
diff --git a/test/TEX/subdir_variantdir_include2.py b/test/TEX/subdir_variantdir_include2.py
index 953a229..2b615f1 100644
--- a/test/TEX/subdir_variantdir_include2.py
+++ b/test/TEX/subdir_variantdir_include2.py
@@ -23,7 +23,7 @@
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-"""
+r"""
Verify that we execute TeX in a subdirectory (if that's where the document
resides) by checking that all the auxiliary files get created there and
not in the top-level directory. Test this when variantDir is used