xref: /aosp_15_r20/external/ltp/lib/newlib_tests/test_assert.c (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * Copyright (c) 2020 Yang Xu <[email protected]>
4  */
5 
6 #include <stdio.h>
7 #include "tst_test.h"
8 
do_test(void)9 static void do_test(void)
10 {
11 	TST_ASSERT_INT("/proc/self/oom_score", 0);
12 	TST_ASSERT_STR("/proc/self/comm", "test_assert");
13 	TST_ASSERT_FILE_INT("/proc/self/io", "read_bytes:", 0);
14 	TST_ASSERT_FILE_STR("/proc/self/status1", "State", "unexpected");
15 }
16 
17 static struct tst_test test = {
18 	.test_all = do_test,
19 };
20