Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:dirkmueller:acdc:as_python3_module
libssh.32500
0001-disable-timeout-test-on-slow-buildsystems....
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-disable-timeout-test-on-slow-buildsystems.patch of Package libssh.32500
Index: libssh-0.9.6/tests/unittests/torture_misc.c =================================================================== --- libssh-0.9.6.orig/tests/unittests/torture_misc.c 2021-08-26 15:14:47.337264821 +0200 +++ libssh-0.9.6/tests/unittests/torture_misc.c 2021-08-26 15:15:24.513466534 +0200 @@ -211,11 +211,13 @@ static void torture_timeout_elapsed(void ssh_timestamp_init(&ts); usleep(30000); +#ifndef SLOW_TEST_SYSTEM assert_true(ssh_timeout_elapsed(&ts,25)); assert_false(ssh_timeout_elapsed(&ts,30000)); assert_false(ssh_timeout_elapsed(&ts,75)); assert_true(ssh_timeout_elapsed(&ts,0)); assert_false(ssh_timeout_elapsed(&ts,-1)); +#endif /* SLOW_TEST_SYSTEM */ } static void torture_timeout_update(void **state){ @@ -223,11 +225,13 @@ static void torture_timeout_update(void (void) state; ssh_timestamp_init(&ts); usleep(50000); +#ifndef SLOW_TEST_SYSTEM assert_int_equal(ssh_timeout_update(&ts,25), 0); assert_in_range(ssh_timeout_update(&ts,30000),29000,29960); assert_in_range(ssh_timeout_update(&ts,75),1,40); assert_int_equal(ssh_timeout_update(&ts,0),0); assert_int_equal(ssh_timeout_update(&ts,-1),-1); +#endif /* SLOW_TEST_SYSTEM */ } static void torture_ssh_analyze_banner(void **state) { Index: libssh-0.9.6/DefineOptions.cmake =================================================================== --- libssh-0.9.6.orig/DefineOptions.cmake 2021-08-26 15:14:47.337264821 +0200 +++ libssh-0.9.6/DefineOptions.cmake 2021-08-26 15:14:50.093279775 +0200 @@ -22,6 +22,7 @@ option(WITH_ABI_BREAK "Allow ABI break" option(WITH_GEX "Enable DH Group exchange mechanisms" ON) option(FUZZ_TESTING "Build with fuzzer for the server" OFF) option(PICKY_DEVELOPER "Build with picky developer flags" OFF) +option(SLOW_TEST_SYSTEM "Disable tests that fail on slow systems" OFF) if (WITH_ZLIB) set(WITH_LIBZ ON) @@ -53,3 +54,8 @@ endif (NOT GLOBAL_BIND_CONFIG) if (NOT GLOBAL_CLIENT_CONFIG) set(GLOBAL_CLIENT_CONFIG "/etc/ssh/ssh_config") endif (NOT GLOBAL_CLIENT_CONFIG) + +if (SLOW_TEST_SYSTEM) + set (SLOW_TEST_SYSTEM ON) + add_definitions(-DSLOW_TEST_SYSTEM) +endif (SLOW_TEST_SYSTEM)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor