1f08c3bdfSopenharmony_ci// SPDX-License-Identifier: GPL-2.0-or-later 2f08c3bdfSopenharmony_ci/* 3f08c3bdfSopenharmony_ci * Copyright (c) 2018 Linux Test Project 4f08c3bdfSopenharmony_ci * Copyright (C) 2015 Cyril Hrubis chrubis@suse.cz 5f08c3bdfSopenharmony_ci */ 6f08c3bdfSopenharmony_ci 7f08c3bdfSopenharmony_ci#define TST_NO_DEFAULT_MAIN 8f08c3bdfSopenharmony_ci#include "tst_test.h" 9f08c3bdfSopenharmony_ci 10f08c3bdfSopenharmony_ciint main(int argc, char *argv[]) 11f08c3bdfSopenharmony_ci{ 12f08c3bdfSopenharmony_ci tst_reinit(); 13f08c3bdfSopenharmony_ci 14f08c3bdfSopenharmony_ci if (argc != 2) 15f08c3bdfSopenharmony_ci tst_brk(TFAIL, "argc is %d, expected 2", argc); 16f08c3bdfSopenharmony_ci 17f08c3bdfSopenharmony_ci if (strcmp(argv[1], "canary")) 18f08c3bdfSopenharmony_ci tst_brk(TFAIL, "argv[1] is %s, expected 'canary'", argv[1]); 19f08c3bdfSopenharmony_ci 20f08c3bdfSopenharmony_ci tst_res(TPASS, "%s executed", argv[0]); 21f08c3bdfSopenharmony_ci 22f08c3bdfSopenharmony_ci return 0; 23f08c3bdfSopenharmony_ci} 24