diff options
author | Rebecca Turner <rbt@sent.as> | 2024-03-22 16:41:42 -0700 |
---|---|---|
committer | Rebecca Turner <rbt@sent.as> | 2024-03-28 15:54:12 -0700 |
commit | 5ec2efb68677ccb5fd91c295cf6ae6039652ac73 (patch) | |
tree | 823e80abd2705e2ecadca7557240f917c6982b28 /tests/functional/repl_characterization | |
parent | 62332c12505adc033eca7355de2b8a469355664f (diff) |
Move `DebugChar` into its own file
Change-Id: Ia40549e5d0b78ece8dd0722c3a5a032b9915f24b
Diffstat (limited to 'tests/functional/repl_characterization')
-rw-r--r-- | tests/functional/repl_characterization/test-session.cc | 6 |
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"; } } |