test: Migrate auto_tests to new events API. #2119
Closed
Cirrus CI / freebsd
failed
Dec 9, 2023 in 2m 33s
Task Summary
Instruction test_all failed in 02:25
Details
✅ 00:05 clone
✅ 00:01 configure
❌ 02:25 test_all
[ 48%] Building C object CMakeFiles/toxcore_static.dir/toxav/bwcontroller.c.o
[ 48%] Building C object CMakeFiles/toxcore_shared.dir/toxav/bwcontroller.c.o
[ 49%] Building C object CMakeFiles/toxcore_static.dir/toxav/groupav.c.o
[ 50%] Building C object CMakeFiles/toxcore_static.dir/toxav/rtp.c.o
[ 50%] Building C object CMakeFiles/toxcore_shared.dir/toxav/msi.c.o
[ 51%] Building C object CMakeFiles/toxcore_shared.dir/toxav/groupav.c.o
[ 48%] Building C object CMakeFiles/toxcore_static.dir/toxav/msi.c.o
[ 52%] Building C object CMakeFiles/toxcore_shared.dir/toxav/rtp.c.o
[ 52%] Building C object CMakeFiles/toxcore_static.dir/toxav/toxav.c.o
[ 53%] Building C object CMakeFiles/toxcore_shared.dir/toxav/toxav_old.c.o
[ 54%] Building C object CMakeFiles/toxcore_static.dir/toxav/video.c.o
[ 54%] Building C object CMakeFiles/toxcore_shared.dir/toxav/video.c.o
[ 54%] Building C object CMakeFiles/toxcore_shared.dir/toxencryptsave/toxencryptsave.c.o
[ 52%] Building C object CMakeFiles/toxcore_shared.dir/toxav/ring_buffer.c.o
[ 54%] Building C object CMakeFiles/toxcore_static.dir/toxencryptsave/toxencryptsave.c.o
[ 54%] Building C object CMakeFiles/toxcore_shared.dir/toxav/toxav.c.o
[ 54%] Building C object CMakeFiles/toxcore_static.dir/toxav/toxav_old.c.o
[ 55%] Linking C static library libtoxcore.a
[ 55%] Built target toxcore_static
[ 55%] Building C object other/bootstrap_daemon/CMakeFiles/tox-bootstrapd.dir/src/command_line_arguments.c.o
[ 55%] Building C object other/bootstrap_daemon/CMakeFiles/tox-bootstrapd.dir/src/log.c.o
[ 56%] Building C object other/bootstrap_daemon/CMakeFiles/tox-bootstrapd.dir/src/config.c.o
[ 56%] Building C object other/bootstrap_daemon/CMakeFiles/tox-bootstrapd.dir/src/log_backend_stdout.c.o
[ 57%] Building C object other/bootstrap_daemon/CMakeFiles/tox-bootstrapd.dir/src/log_backend_syslog.c.o
[ 57%] Building C object other/bootstrap_daemon/CMakeFiles/tox-bootstrapd.dir/src/tox-bootstrapd.c.o
[ 58%] Building C object other/bootstrap_daemon/CMakeFiles/tox-bootstrapd.dir/__/bootstrap_node_packets.c.o
[ 59%] Building C object testing/CMakeFiles/misc_tools.dir/misc_tools.c.o
[ 60%] Linking C shared library libtoxcore.so
[ 60%] Linking C static library libmisc_tools.a
[ 60%] Built target misc_tools
[ 60%] Building C object CMakeFiles/DHT_bootstrap.dir/other/DHT_bootstrap.c.o
[ 60%] Building C object auto_tests/CMakeFiles/auto_test_support.dir/auto_test_support.c.o
[ 60%] Building C object CMakeFiles/DHT_bootstrap.dir/other/bootstrap_node_packets.c.o
[ 60%] Linking C executable tox-bootstrapd
/root/c-toxcore/auto_tests/auto_test_support.c:270:101: error: variable 'err' may be uninitialized when used here [-Werror,-Wconditional-uninitialized]
ck_assert_msg(autotox->tox != nullptr, "failed to create tox instance #%u (error = %d)", index, err);
^~~
/root/c-toxcore/auto_tests/check_compat.h:19:21: note: expanded from macro 'ck_assert_msg'
fprintf(stderr, __VA_ARGS__); \
^~~~~~~~~~~
/root/c-toxcore/auto_tests/auto_test_support.c:228:5: note: variable 'err' is declared here
Tox_Err_New err;
^
1 error generated.
gmake[2]: *** [auto_tests/CMakeFiles/auto_test_support.dir/build.make:76: auto_tests/CMakeFiles/auto_test_support.dir/auto_test_support.c.o] Error 1
[ 61%] Linking C executable DHT_bootstrap
gmake[2]: Target 'auto_tests/CMakeFiles/auto_test_support.dir/build' not remade because of errors.
gmake[1]: *** [CMakeFiles/Makefile2:1110: auto_tests/CMakeFiles/auto_test_support.dir/all] Error 2
[ 61%] Built target tox-bootstrapd
[ 61%] Built target toxcore_shared
[ 61%] Built target DHT_bootstrap
gmake[1]: Target 'all' not remade because of errors.
gmake: *** [Makefile:146: all] Error 2
gmake: Target 'install' not remade because of errors.
Exit status: 2
Loading