diff options
author | CoprDistGit <infra@openeuler.org> | 2023-08-20 03:32:50 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-08-20 03:32:50 +0000 |
commit | 2847c413880322cd66177f0edbd1d8c2bb8c2733 (patch) | |
tree | 1450935150f579bab832ca5ef012fed37e173311 /bugfix-limit-numbers-of-test-threads.patch | |
parent | a0619d67dc05822e0ba3e196a8d7ebc1c4c25bff (diff) |
automatic import of bind
Diffstat (limited to 'bugfix-limit-numbers-of-test-threads.patch')
-rw-r--r-- | bugfix-limit-numbers-of-test-threads.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/bugfix-limit-numbers-of-test-threads.patch b/bugfix-limit-numbers-of-test-threads.patch new file mode 100644 index 0000000..6115096 --- /dev/null +++ b/bugfix-limit-numbers-of-test-threads.patch @@ -0,0 +1,39 @@ +From 1d9843b58800b51e1366fba5e0bdef5f0336efaf Mon Sep 17 00:00:00 2001 +From: jiangheng <jiangheng12@huawei.com> +Date: Wed, 9 Feb 2022 16:21:10 +0800 +Subject: [PATCH] limit numbers of test threads to reduce execution time + +--- + lib/dns/tests/dnstest.c | 2 +- + lib/ns/tests/nstest.c | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/lib/dns/tests/dnstest.c b/lib/dns/tests/dnstest.c +index 465ce9f..263b0d6 100644 +--- a/lib/dns/tests/dnstest.c ++++ b/lib/dns/tests/dnstest.c +@@ -114,7 +114,7 @@ cleanup_managers(void) { + static isc_result_t + create_managers(void) { + isc_result_t result; +- ncpus = isc_os_ncpus(); ++ ncpus = ISC_MIN(isc_os_ncpus(), 8); + + CHECK(isc_managers_create(dt_mctx, ncpus, 0, &netmgr, &taskmgr)); + CHECK(isc_timermgr_create(dt_mctx, &timermgr)); +diff --git a/lib/ns/tests/nstest.c b/lib/ns/tests/nstest.c +index 238450d..b5fa00c 100644 +--- a/lib/ns/tests/nstest.c ++++ b/lib/ns/tests/nstest.c +@@ -243,7 +243,7 @@ create_managers(void) { + in_port_t port = 5300 + isc_random8(); + ns_listenlist_t *listenon = NULL; + isc_event_t *event = NULL; +- ncpus = isc_os_ncpus(); ++ ncpus = ISC_MIN(isc_os_ncpus(), 8); + + CHECK(isc_managers_create(mctx, ncpus, 0, &netmgr, &taskmgr)); + CHECK(isc_task_create_bound(taskmgr, 0, &maintask, 0)); +-- +1.8.3.1 + |