[testsuite] [i386] work around fails with --enable-frame-pointer
[official-gcc.git] / gcc / text-art / selftests.h
blob2be6279f8612494f559cca6cbaa433d759536894
1 /* Copyright (C) 2023-2024 Free Software Foundation, Inc.
2 Contributed by David Malcolm <dmalcolm@redhat.com>.
4 This file is part of GCC.
6 GCC is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free
8 Software Foundation; either version 3, or (at your option) any later
9 version.
11 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 for more details.
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING3. If not see
18 <http://www.gnu.org/licenses/>. */
20 #ifndef GCC_TEXT_ART_SELFTESTS_H
21 #define GCC_TEXT_ART_SELFTESTS_H
23 #if CHECKING_P
25 namespace text_art {
26 class canvas;
27 } // namespace text_art
29 namespace selftest {
31 extern void text_art_box_drawing_cc_tests ();
32 extern void text_art_canvas_cc_tests ();
33 extern void text_art_ruler_cc_tests ();
34 extern void text_art_style_cc_tests ();
35 extern void text_art_styled_string_cc_tests ();
36 extern void text_art_table_cc_tests ();
37 extern void text_art_widget_cc_tests ();
39 extern void text_art_tests ();
41 extern void assert_canvas_streq (const location &loc,
42 const text_art::canvas &canvas,
43 pretty_printer *pp,
44 const char *expected_str);
45 extern void assert_canvas_streq (const location &loc,
46 const text_art::canvas &canvas,
47 bool styled,
48 const char *expected_str);
50 #define ASSERT_CANVAS_STREQ(CANVAS, STYLED, EXPECTED_STR) \
51 SELFTEST_BEGIN_STMT \
52 assert_canvas_streq ((SELFTEST_LOCATION), \
53 (CANVAS), \
54 (STYLED), \
55 (EXPECTED_STR)); \
56 SELFTEST_END_STMT
58 } /* end of namespace selftest. */
60 #endif /* #if CHECKING_P */
62 #endif /* GCC_TEXT_ART_SELFTESTS_H */