Software APIs
status_report_test.c
1 // Copyright lowRISC contributors (OpenTitan project).
2 // Licensed under the Apache License, Version 2.0, see LICENSE for details.
3 // SPDX-License-Identifier: Apache-2.0
4 
5 #include <stdbool.h>
6 
7 #include "sw/device/lib/base/status_report_unittest_c.h"
8 #include "sw/device/lib/testing/test_framework/check.h"
10 
11 OTTF_DEFINE_TEST_CONFIG();
12 
13 bool test_main(void) {
14  status_t status = status_report_unittest_c();
15  // push the returned status for easier checking
16  status_report(status);
17  // make the test fails so it prints the status
18  return false;
19 }