1141cc406Sopenharmony_ci/* sane - Scanner Access Now Easy.
2141cc406Sopenharmony_ci
3141cc406Sopenharmony_ci   Copyright (C) 2019 Povilas Kanapickas <povilas@radix.lt>
4141cc406Sopenharmony_ci
5141cc406Sopenharmony_ci   This file is part of the SANE package.
6141cc406Sopenharmony_ci
7141cc406Sopenharmony_ci   This program is free software; you can redistribute it and/or
8141cc406Sopenharmony_ci   modify it under the terms of the GNU General Public License as
9141cc406Sopenharmony_ci   published by the Free Software Foundation; either version 2 of the
10141cc406Sopenharmony_ci   License, or (at your option) any later version.
11141cc406Sopenharmony_ci
12141cc406Sopenharmony_ci   This program is distributed in the hope that it will be useful, but
13141cc406Sopenharmony_ci   WITHOUT ANY WARRANTY; without even the implied warranty of
14141cc406Sopenharmony_ci   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15141cc406Sopenharmony_ci   General Public License for more details.
16141cc406Sopenharmony_ci
17141cc406Sopenharmony_ci   You should have received a copy of the GNU General Public License
18141cc406Sopenharmony_ci   along with this program.  If not, see <https://www.gnu.org/licenses/>.
19141cc406Sopenharmony_ci*/
20141cc406Sopenharmony_ci
21141cc406Sopenharmony_ci#define DEBUG_DECLARE_ONLY
22141cc406Sopenharmony_ci
23141cc406Sopenharmony_ci#include "minigtest.h"
24141cc406Sopenharmony_ci
25141cc406Sopenharmony_cisize_t s_num_successes = 0;
26141cc406Sopenharmony_cisize_t s_num_failures = 0;
27141cc406Sopenharmony_ci
28141cc406Sopenharmony_ciint finish_tests()
29141cc406Sopenharmony_ci{
30141cc406Sopenharmony_ci    std::cerr << "Finished tests. Successes: " << s_num_successes
31141cc406Sopenharmony_ci              << " failures: " << s_num_failures << "\n";
32141cc406Sopenharmony_ci    if (s_num_failures > 0)
33141cc406Sopenharmony_ci        return 1;
34141cc406Sopenharmony_ci    return 0;
35141cc406Sopenharmony_ci}
36