• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2018 Linux Test Project
3  * Copyright (C) 2015 Cyril Hrubis <chrubis@suse.cz>
4  * Copyright (c) 2000 Silicon Graphics, Inc.  All Rights Reserved.
5  *    AUTHOR		: William Roske
6  *    CO-PILOT		: Dave Fenner
7  *    DATE STARTED	: 06/01/02
8  *
9  * This program is free software: you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation, either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program. If not, see <http://www.gnu.org/licenses/>.
21  */
22 
23 #define TST_NO_DEFAULT_MAIN
24 #include "tst_test.h"
25 
main(int argc,char * argv[])26 int main(int argc, char *argv[])
27 {
28 	tst_reinit();
29 
30 	if (argc != 2)
31 		tst_brk(TFAIL, "argc is %d, expected 2", argc);
32 
33 	if (strcmp(argv[1], "canary"))
34 		tst_brk(TFAIL, "argv[1] is %s, expected 'canary'", argv[1]);
35 
36 	tst_res(TPASS, "%s executed", argv[0]);
37 
38 	return 0;
39 }
40