summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/l3build/regression-test.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/l3build/regression-test.tex')
-rw-r--r--Master/texmf-dist/tex/latex/l3build/regression-test.tex14
1 files changed, 8 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/l3build/regression-test.tex b/Master/texmf-dist/tex/latex/l3build/regression-test.tex
index 792eac0f1e3..6654067138f 100644
--- a/Master/texmf-dist/tex/latex/l3build/regression-test.tex
+++ b/Master/texmf-dist/tex/latex/l3build/regression-test.tex
@@ -47,7 +47,7 @@
%%
%% -----------------------------------------------------------------------
%%
-\expandafter\edef\csname\detokenize{reset@catcodes}\endcsname{%
+\expandafter\edef\csname reset\string @catcodes\endcsname{%
\catcode`\noexpand\@=\the\catcode`\@\relax
}
\catcode`\@=11 %
@@ -106,11 +106,13 @@
\fi
\def\END
{%
- \ifnum\currentgrouplevel>0 %
- \LONGTYPEOUT{Bad grouping: \the\currentgrouplevel!}%
- \fi
- \ifnum\currentiflevel>1 %
- \LONGTYPEOUT{Bad conditionals: \the\numexpr\currentiflevel-1!}%
+ \ifx\currentiflevel\@undefined\else
+ \ifnum\currentgrouplevel>0 %
+ \LONGTYPEOUT{Bad grouping: \the\currentgrouplevel!}%
+ \fi
+ \ifnum\currentiflevel>2 %
+ \LONGTYPEOUT{Bad conditionals: \the\numexpr\currentiflevel-2!}%
+ \fi
\fi
\LONGTYPEOUT{END-TEST-LOG}\@@@end
}