xref: /aosp_15_r20/external/ltp/scripts/coccinelle/libltp-test-macro-vars.cocci (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1*49cdfc7eSAndroid Build Coastguard Worker// SPDX-License-Identifier: GPL-2.0-or-later
2*49cdfc7eSAndroid Build Coastguard Worker// Copyright (c) 2021 SUSE LLC  <[email protected]>
3*49cdfc7eSAndroid Build Coastguard Worker
4*49cdfc7eSAndroid Build Coastguard Worker// Find violations of LTP-002
5*49cdfc7eSAndroid Build Coastguard Worker@ find_use exists @
6*49cdfc7eSAndroid Build Coastguard Workerexpression E;
7*49cdfc7eSAndroid Build Coastguard Worker@@
8*49cdfc7eSAndroid Build Coastguard Worker
9*49cdfc7eSAndroid Build Coastguard Worker(
10*49cdfc7eSAndroid Build Coastguard Worker* TST_ERR
11*49cdfc7eSAndroid Build Coastguard Worker|
12*49cdfc7eSAndroid Build Coastguard Worker* TST_RET
13*49cdfc7eSAndroid Build Coastguard Worker|
14*49cdfc7eSAndroid Build Coastguard Worker* TTERRNO | E
15*49cdfc7eSAndroid Build Coastguard Worker)
16