Code Review
/
src
/
app-framework-main.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Remove tokens
[src/app-framework-main.git]
/
src
/
tests
/
test-unit
/
test-unit.c
diff --git
a/src/tests/test-unit/test-unit.c
b/src/tests/test-unit/test-unit.c
index
7c63a08
..
590907d
100644
(file)
--- a/
src/tests/test-unit/test-unit.c
+++ b/
src/tests/test-unit/test-unit.c
@@
-1,5
+1,5
@@
/*
/*
- Copyright
2016, 2017
IoT.bzh
+ Copyright
(C) 2016-2019
IoT.bzh
author: José Bollo <jose.bollo@iot.bzh>
author: José Bollo <jose.bollo@iot.bzh>
@@
-65,6
+65,12
@@
puts(json_object_to_json_string_ext(desc->desc, JSON_C_TO_STRING_PRETTY));
return 0;
}
return 0;
}
+static int port()
+{
+ static int r = 10000;
+ return r++;
+}
+
int main(int ac, char **av)
{
struct unitconf conf;
int main(int ac, char **av)
{
struct unitconf conf;
@@
-73,7
+79,7
@@
int main(int ac, char **av)
conf.installdir = "INSTALL-DIR";
conf.icondir = "ICONS-DIR";
conf.installdir = "INSTALL-DIR";
conf.icondir = "ICONS-DIR";
- conf.port =
666
;
+ conf.port =
port
;
rc = unit_generator_open_template(*++av);
if (rc < 0)
error("can't read template %s: %m",*av);
rc = unit_generator_open_template(*++av);
if (rc < 0)
error("can't read template %s: %m",*av);