Skip to content

Commit 390cac2

Browse files
Use "Debug" build for Windows CI
This causes an assertion. If anyone has a Windows PC they might debug it. Note: I replaced the assertion with a direct EXIT_FAILURE because assertion seem to cause infinite waiting on Windows CI.
1 parent 0e91f0c commit 390cac2

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/ccpp.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
-B build
1919
-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake
2020
-DRTOSC_WERROR=1
21-
-DCMAKE_BUILD_TYPE=Release
21+
-DCMAKE_BUILD_TYPE=Debug
2222
",
23-
build: "cmake --build build --config Release",
23+
build: "cmake --build build --config Debug",
2424
test: "ctest --output-on-failure --test-dir build"
2525
}
2626
- {

test/performance.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,10 @@ int main()
170170
}
171171
}
172172
printf("Matches: %d vs expected 3600000\n", d.matches);
173-
assert(d.matches == 3600000);
173+
//assert(d.matches == 3600000);
174+
int is_ok = (d.matches == 3600000);
175+
if (!is_ok)
176+
return EXIT_FAILURE;
174177
int t_off = clock(); // timer when func returns
175178
print_results("RTOSC", t_on, t_off, repeats);
176179

@@ -294,5 +297,5 @@ int main()
294297
print_results("LIBLO", t_on, t_off, repeats);
295298
#endif
296299

297-
return EXIT_SUCCESS;
300+
return !is_ok;
298301
}

0 commit comments

Comments
 (0)