mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-15 14:41:14 -03:00
Make debug_level an atomic
Fixes a tsan warning
This commit is contained in:
@@ -2426,10 +2426,12 @@ static void test_dup2s() {
|
||||
|
||||
// Invalid files should fail to open.
|
||||
// Suppress the debug() message.
|
||||
scoped_push<int> saved_debug_level(&debug_level, -1);
|
||||
int saved_debug_level = debug_level;
|
||||
debug_level = -1;
|
||||
chain.push_back(make_shared<io_file_t>(2, L"/definitely/not/a/valid/path/for/this/test", 0666));
|
||||
list = dup2_list_t::resolve_chain(chain);
|
||||
do_test(!list.has_value());
|
||||
debug_level = saved_debug_level;
|
||||
}
|
||||
|
||||
static void test_dup2s_fd_for_target_fd() {
|
||||
|
||||
Reference in New Issue
Block a user