summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/tests/tracingstacklevels.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-02-25 19:22:25 +0000
committerKarl Berry <karl@freefriends.org>2021-02-25 19:22:25 +0000
commitad547a6b5986815fda458221149728d9d9ab1d87 (patch)
tree16296910eb3eca724371474ea9aea3994dc69614 /Build/source/texk/web2c/tests/tracingstacklevels.tex
parent947b43de3dd21d58ccc2ffadefc4441ea1c2a813 (diff)
restore Build,TODO from r57911
git-svn-id: svn://tug.org/texlive/trunk@57915 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/tests/tracingstacklevels.tex')
-rw-r--r--Build/source/texk/web2c/tests/tracingstacklevels.tex22
1 files changed, 22 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/tests/tracingstacklevels.tex b/Build/source/texk/web2c/tests/tracingstacklevels.tex
new file mode 100644
index 00000000000..e2509a8b82c
--- /dev/null
+++ b/Build/source/texk/web2c/tests/tracingstacklevels.tex
@@ -0,0 +1,22 @@
+% $Id$
+% Public domain. Originally written by Karl Berry, 2021.
+% Trivially test \tracingstacklevels (works with initex).
+% (Run by hand; not included in the make check tests.)
+% See tracingstacklevels.ch and the pdftex manual for more info.
+
+\catcode`\{=1 \catcode`\}=2 \catcode`\#=6
+
+%\tracingcommands=3 % more output if you want to see
+
+\tracingmacros=2 % so macro expansion is logged at all
+\tracingstacklevels=2 % cut off at level 2
+
+\def\a#1{\relax} % arguments since parameter logging is affected too
+\def\b#1{\a{#1}}
+\b1
+
+% try \input, which counts as another level for this.
+% The file expands \b again.
+\input tracingstacklevel2
+
+\end