7ea17c5 |
Jamozed |
2020-10-26 12:50:58 |
0
|
// test_error.c |
98e5939 |
Jamozed |
2021-11-27 17:53:46 |
1
|
// Error unit test for libutil |
7ea17c5 |
Jamozed |
2020-10-26 12:50:58 |
2
|
// Copyright (C) 2020, Jakob Wakeling |
7f427d9 |
Jamozed |
2022-03-06 12:55:13 |
3
|
// MIT Licence |
0e4ad6b |
Jamozed |
2021-01-27 14:51:17 |
4
|
|
bd9fc8b |
Jamozed |
2021-01-27 14:44:30 |
5
|
#include "../error.h" |
7ea17c5 |
Jamozed |
2020-10-26 12:50:58 |
6
|
|
7ea17c5 |
Jamozed |
2020-10-26 12:50:58 |
7
|
int main(int ac, char *av[]) { A0 = av[0]; |
1e6cded |
Jamozed |
2021-11-27 17:58:37 |
8
|
warn("%s: %s", "warn", SERR); |
1e6cded |
Jamozed |
2021-11-27 17:58:37 |
9
|
alert("%s: %s", "alert", SERR); |
1e6cded |
Jamozed |
2021-11-27 17:58:37 |
10
|
error(0, "%s: %s", "error", SERR); |
7ea17c5 |
Jamozed |
2020-10-26 12:50:58 |
11
|
return 1; // Fail |
7ea17c5 |
Jamozed |
2020-10-26 12:50:58 |
12
|
} |
|
|
|
13
|
|