Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
0b98289e
Commit
0b98289e
authored
Dec 25, 2013
by
Andrey Mazo
Committed by
Serge Hallyn
Jan 02, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bring static and const to tests too
Signed-off-by:
Andrey Mazo
<
mazo@telum.ru
>
Signed-off-by:
Serge Hallyn
<
serge.hallyn@ubuntu.com
>
parent
74a3920a
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
9 additions
and
9 deletions
+9
-9
attach.c
src/tests/attach.c
+1
-1
concurrent.c
src/tests/concurrent.c
+2
-2
list.c
src/tests/list.c
+1
-1
locktests.c
src/tests/locktests.c
+1
-1
may_control.c
src/tests/may_control.c
+2
-2
reboot.c
src/tests/reboot.c
+1
-1
snapshot.c
src/tests/snapshot.c
+1
-1
No files found.
src/tests/attach.c
View file @
0b98289e
...
@@ -332,7 +332,7 @@ out1:
...
@@ -332,7 +332,7 @@ out1:
}
}
int
test_attach
(
const
char
*
lxcpath
,
const
char
*
name
,
const
char
*
template
)
static
int
test_attach
(
const
char
*
lxcpath
,
const
char
*
name
,
const
char
*
template
)
{
{
int
ret
=
-
1
;
int
ret
=
-
1
;
struct
lxc_container
*
ct
;
struct
lxc_container
*
ct
;
...
...
src/tests/concurrent.c
View file @
0b98289e
...
@@ -33,7 +33,7 @@ static int quiet = 0;
...
@@ -33,7 +33,7 @@ static int quiet = 0;
static
int
delay
=
0
;
static
int
delay
=
0
;
static
const
char
*
template
=
"busybox"
;
static
const
char
*
template
=
"busybox"
;
static
struct
option
options
[]
=
{
static
const
struct
option
options
[]
=
{
{
"threads"
,
required_argument
,
NULL
,
'j'
},
{
"threads"
,
required_argument
,
NULL
,
'j'
},
{
"iterations"
,
required_argument
,
NULL
,
'i'
},
{
"iterations"
,
required_argument
,
NULL
,
'i'
},
{
"template"
,
required_argument
,
NULL
,
't'
},
{
"template"
,
required_argument
,
NULL
,
't'
},
...
@@ -63,7 +63,7 @@ static void usage(void) {
...
@@ -63,7 +63,7 @@ static void usage(void) {
struct
thread_args
{
struct
thread_args
{
int
thread_id
;
int
thread_id
;
int
return_code
;
int
return_code
;
char
*
mode
;
c
onst
c
har
*
mode
;
};
};
static
void
do_function
(
void
*
arguments
)
static
void
do_function
(
void
*
arguments
)
...
...
src/tests/list.c
View file @
0b98289e
...
@@ -80,7 +80,7 @@ static void test_list_func(const char *lxcpath, const char *type,
...
@@ -80,7 +80,7 @@ static void test_list_func(const char *lxcpath, const char *type,
int
main
(
int
argc
,
char
*
argv
[])
int
main
(
int
argc
,
char
*
argv
[])
{
{
char
*
lxcpath
=
NULL
;
c
onst
c
har
*
lxcpath
=
NULL
;
if
(
argc
>
1
)
if
(
argc
>
1
)
lxcpath
=
argv
[
1
];
lxcpath
=
argv
[
1
];
...
...
src/tests/locktests.c
View file @
0b98289e
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
#define mycontainername "lxctest.sem"
#define mycontainername "lxctest.sem"
#define TIMEOUT_SECS 3
#define TIMEOUT_SECS 3
void
test_two_locks
(
void
)
static
void
test_two_locks
(
void
)
{
{
struct
lxc_lock
*
l
;
struct
lxc_lock
*
l
;
pid_t
pid
;
pid_t
pid
;
...
...
src/tests/may_control.c
View file @
0b98289e
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
#include <stdlib.h>
#include <stdlib.h>
#include <lxc/lxccontainer.h>
#include <lxc/lxccontainer.h>
void
usage
(
char
*
me
)
static
void
usage
(
const
char
*
me
)
{
{
printf
(
"Usage: %s name [lxcpath]
\n
"
,
me
);
printf
(
"Usage: %s name [lxcpath]
\n
"
,
me
);
exit
(
0
);
exit
(
0
);
...
@@ -29,7 +29,7 @@ void usage(char *me)
...
@@ -29,7 +29,7 @@ void usage(char *me)
int
main
(
int
argc
,
char
*
argv
[])
int
main
(
int
argc
,
char
*
argv
[])
{
{
char
*
lxcpath
=
NULL
,
*
name
;
c
onst
c
har
*
lxcpath
=
NULL
,
*
name
;
bool
may
=
false
;
bool
may
=
false
;
struct
lxc_container
*
c
;
struct
lxc_container
*
c
;
...
...
src/tests/reboot.c
View file @
0b98289e
...
@@ -42,7 +42,7 @@ static int do_reboot(void *arg)
...
@@ -42,7 +42,7 @@ static int do_reboot(void *arg)
return
0
;
return
0
;
}
}
int
test_reboot
(
int
cmd
,
int
sig
)
static
int
test_reboot
(
int
cmd
,
int
sig
)
{
{
long
stack_size
=
4096
;
long
stack_size
=
4096
;
void
*
stack
=
alloca
(
stack_size
)
+
stack_size
;
void
*
stack
=
alloca
(
stack_size
)
+
stack_size
;
...
...
src/tests/snapshot.c
View file @
0b98289e
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
#define MYNAME "snapxxx1"
#define MYNAME "snapxxx1"
#define RESTNAME "snapxxx2"
#define RESTNAME "snapxxx2"
void
try_to_remove
(
)
static
void
try_to_remove
(
void
)
{
{
struct
lxc_container
*
c
;
struct
lxc_container
*
c
;
char
snappath
[
1024
];
char
snappath
[
1024
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment