aboutsummaryrefslogtreecommitdiff
path: root/tests/functional
diff options
context:
space:
mode:
authorrebecca “wiggles” turner <rbt@sent.as>2024-03-29 16:20:14 +0000
committerGerrit Code Review <gerrit@lix>2024-03-29 16:20:14 +0000
commit877750b7c586ec612faba56ed0194ae265994156 (patch)
tree9cd3d0e5ed77060559b1e7b91b2aa38e6b677be1 /tests/functional
parent6e5db5e4a226dc920a8959e8201d75f54c37dde2 (diff)
parent5ec2efb68677ccb5fd91c295cf6ae6039652ac73 (diff)
Merge "Move `DebugChar` into its own file" into main
Diffstat (limited to 'tests/functional')
-rw-r--r--tests/functional/repl_characterization/test-session.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/functional/repl_characterization/test-session.cc b/tests/functional/repl_characterization/test-session.cc
index c35030fc7..50e27e58c 100644
--- a/tests/functional/repl_characterization/test-session.cc
+++ b/tests/functional/repl_characterization/test-session.cc
@@ -3,7 +3,7 @@
#include "test-session.hh"
#include "util.hh"
-#include "tests/debug-char.hh"
+#include "escape-char.hh"
namespace nix {
@@ -60,7 +60,7 @@ std::ostream & operator<<(std::ostream & os, ReplOutputParser::State s)
void ReplOutputParser::transition(State new_state, char responsible_char, bool wasPrompt)
{
if constexpr (DEBUG_REPL_PARSER) {
- std::cerr << "transition " << new_state << " for " << DebugChar{responsible_char}
+ std::cerr << "transition " << new_state << " for " << MaybeHexEscapedChar{responsible_char}
<< (wasPrompt ? " [prompt]" : "") << "\n";
}
state = new_state;
@@ -118,7 +118,7 @@ bool TestSession::waitForPrompt()
});
if constexpr (DEBUG_REPL_PARSER) {
- std::cerr << "raw " << DebugChar{buf[i]} << (wasEaten ? " [eaten]" : "") << "\n";
+ std::cerr << "raw " << MaybeHexEscapedChar{buf[i]} << (wasEaten ? " [eaten]" : "") << "\n";
}
}