diff options
Diffstat (limited to 'gdb/unittests')
-rw-r--r-- | gdb/unittests/tui-selftests.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/unittests/tui-selftests.c b/gdb/unittests/tui-selftests.c index 3a5d34f..95c12e3 100644 --- a/gdb/unittests/tui-selftests.c +++ b/gdb/unittests/tui-selftests.c @@ -21,6 +21,8 @@ #include "gdbsupport/selftest.h" #include "tui/tui-winsource.h" +#ifdef TUI + namespace selftests { namespace tui { @@ -41,8 +43,12 @@ run_tests () } /* namespace tui*/ } /* namespace selftests */ +#endif /* TUI */ + void _initialize_tui_selftest () { +#ifdef TUI selftests::register_test ("tui", selftests::tui::run_tests); +#endif } |