diff options
author | netblue30 <netblue30@yahoo.com> | 2016-07-25 12:29:00 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-07-25 12:29:00 -0400 |
commit | 23bd0c41457262e7ef5223a187e3c15e44be039c (patch) | |
tree | cfecd32023600b289099aca58fab53f0f3fcdb48 /test/arguments/main.c | |
parent | Merge pull request #646 from reinerh/master (diff) | |
download | firejail-23bd0c41457262e7ef5223a187e3c15e44be039c.tar.gz firejail-23bd0c41457262e7ef5223a187e3c15e44be039c.tar.zst firejail-23bd0c41457262e7ef5223a187e3c15e44be039c.zip |
argument subsystem testing framework
Diffstat (limited to 'test/arguments/main.c')
-rw-r--r-- | test/arguments/main.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/arguments/main.c b/test/arguments/main.c new file mode 100644 index 000000000..75bdca715 --- /dev/null +++ b/test/arguments/main.c | |||
@@ -0,0 +1,31 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2014-2016 Firejail Authors | ||
3 | * | ||
4 | * This file is part of firejail project | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License along | ||
17 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
18 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
19 | */ | ||
20 | #include <stdio.h> | ||
21 | |||
22 | int main(int argc, char **argv) { | ||
23 | printf("Arguments:\n"); | ||
24 | |||
25 | int i; | ||
26 | for (i = 0; i < argc; i++) { | ||
27 | printf("#%s#\n", argv[i]); | ||
28 | } | ||
29 | |||
30 | return 0; | ||
31 | } | ||