Skip to content

Commit ac34e7e

Browse files
committed
Redirect stdout/stderr of gdb test in gdb api unit tests to /dev/null
1 parent 14f618c commit ac34e7e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

unit/memory-analyzer/gdb_api.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ void gdb_api_internals_test()
9696

9797
bool check_for_gdb()
9898
{
99-
const bool has_gdb = run("gdb", {"gdb", "--version"}) == 0;
99+
const bool has_gdb =
100+
run("gdb", {"gdb", "--version"}, "", "/dev/null", "/dev/null") == 0;
100101

101102
SECTION("check gdb is on the PATH")
102103
{

0 commit comments

Comments
 (0)