• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3  * Copyright (c) Wipro Technologies Ltd, 2002.  All Rights Reserved.
4  */
5 
6 /*\
7  * [Description]
8  *
9  * This test is run for option 1 for sysfs(2).
10  * Translate the filesystem identifier string fsname into a filesystem type index.
11  */
12 
13 #include <errno.h>
14 #include <unistd.h>
15 #include <sys/syscall.h>
16 #include "tst_test.h"
17 #include "lapi/syscalls.h"
18 
verify_sysfs01(void)19 static void verify_sysfs01(void)
20 {
21 	/* option 1, buf holds fs name */
22 	TST_EXP_POSITIVE(tst_syscall(__NR_sysfs, 1, "proc"), "sysfs(1, 'proc')");
23 }
24 
25 static struct tst_test test = {
26 	.test_all = verify_sysfs01,
27 };
28