• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * Copyright (c) 2018 Linux Test Project
4  * Copyright (C) 2015 Cyril Hrubis <chrubis@suse.cz>
5  * Copyright (c) 2000 Silicon Graphics, Inc.  All Rights Reserved.
6  *    AUTHOR		: William Roske
7  *    CO-PILOT		: Dave Fenner
8  */
9 
10 #define TST_NO_DEFAULT_MAIN
11 #include "tst_test.h"
12 
main(int argc,char * argv[])13 int main(int argc, char *argv[])
14 {
15 	tst_reinit();
16 
17 	if (argc != 2)
18 		tst_brk(TFAIL, "argc is %d, expected 2", argc);
19 
20 	if (strcmp(argv[1], "canary"))
21 		tst_brk(TFAIL, "argv[1] is %s, expected 'canary'", argv[1]);
22 
23 	tst_res(TPASS, "%s executed", argv[0]);
24 
25 	return 0;
26 }
27