From: Daniel Arndt Date: Mon, 28 Feb 2022 22:50:36 +0000 (-0500) Subject: Run quick tests in GitHub CI X-Git-Tag: v9.4.0-rc1~418^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F13467%2Fhead;p=dealii.git Run quick tests in GitHub CI --- diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index aec100791a..3e659da781 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -36,6 +36,8 @@ jobs: - name: build run: | make -j 2 + - name: quicktest + run: make test linux-debug-parallel-simplex: # simple parallel debug build using g++ with simplex configuration enabled diff --git a/tests/quick_tests/affinity.cc b/tests/quick_tests/affinity.cc index 460b347c6b..7fd725a562 100644 --- a/tests/quick_tests/affinity.cc +++ b/tests/quick_tests/affinity.cc @@ -48,9 +48,12 @@ getaffinity(unsigned int &bits_set, unsigned int &mask) return false; } for (int i = 0; i < CPU_SETSIZE; ++i) - bits_set += CPU_ISSET(i, &my_set); + if (CPU_ISSET(i, &my_set)) + { + ++bits_set; + mask |= (1 << i); + } - mask = *reinterpret_cast(&my_set); #else // sadly we don't have an implementation // for mac/windows