Skip to content

Commit 2233c43

Browse files
committed
remove redundant example test in ci windows script. Ensure path to dll is set before running tests. Fix warning in grpc example server.cc
1 parent 1cfd99b commit 2233c43

File tree

2 files changed

+4
-33
lines changed

2 files changed

+4
-33
lines changed

ci/do_ci.ps1

Lines changed: 3 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -77,23 +77,8 @@ switch ($action) {
7777
if ($exit -ne 0) {
7878
exit $exit
7979
}
80-
ctest -C Debug
81-
$exit = $LASTEXITCODE
82-
if ($exit -ne 0) {
83-
exit $exit
84-
}
8580
$env:PATH = "$BUILD_DIR\ext\src\dll\Debug;$env:PATH"
86-
examples\simple\Debug\example_simple.exe
87-
$exit = $LASTEXITCODE
88-
if ($exit -ne 0) {
89-
exit $exit
90-
}
91-
examples\metrics_simple\Debug\metrics_ostream_example.exe
92-
$exit = $LASTEXITCODE
93-
if ($exit -ne 0) {
94-
exit $exit
95-
}
96-
examples\logs_simple\Debug\example_logs_simple.exe
81+
ctest -C Debug
9782
$exit = $LASTEXITCODE
9883
if ($exit -ne 0) {
9984
exit $exit
@@ -115,23 +100,8 @@ switch ($action) {
115100
if ($exit -ne 0) {
116101
exit $exit
117102
}
118-
ctest -C Debug
119-
$exit = $LASTEXITCODE
120-
if ($exit -ne 0) {
121-
exit $exit
122-
}
123103
$env:PATH = "$BUILD_DIR\ext\src\dll\Debug;$env:PATH"
124-
examples\simple\Debug\example_simple.exe
125-
$exit = $LASTEXITCODE
126-
if ($exit -ne 0) {
127-
exit $exit
128-
}
129-
examples\metrics_simple\Debug\metrics_ostream_example.exe
130-
$exit = $LASTEXITCODE
131-
if ($exit -ne 0) {
132-
exit $exit
133-
}
134-
examples\logs_simple\Debug\example_logs_simple.exe
104+
ctest -C Debug
135105
$exit = $LASTEXITCODE
136106
if ($exit -ne 0) {
137107
exit $exit
@@ -277,6 +247,7 @@ switch ($action) {
277247
if ($exit -ne 0) {
278248
exit $exit
279249
}
250+
$env:PATH = "$BUILD_DIR\ext\src\dll\Debug;$env:PATH"
280251
ctest -C Debug
281252
$exit = $LASTEXITCODE
282253
if ($exit -ne 0) {

examples/grpc/server.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ int main(int argc, char **argv)
127127
uint16_t port;
128128
if (argc > 1)
129129
{
130-
port = atoi(argv[1]);
130+
port = static_cast<uint16_t>(atoi(argv[1]));
131131
}
132132
else
133133
{

0 commit comments

Comments
 (0)