From 6991b5ee2c2acec7fb1936cf9afbce058b35a460 Mon Sep 17 00:00:00 2001
From: Daniel Arndt <arndtd@ornl.gov>
Date: Mon, 28 Feb 2022 17:50:36 -0500
Subject: [PATCH] Run quick tests in GitHub CI

---
 .github/workflows/linux.yml   | 2 ++
 tests/quick_tests/affinity.cc | 7 +++++--
 2 files changed, 7 insertions(+), 2 deletions(-)

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<int *>(&my_set);
 #else
   // sadly we don't have an implementation
   // for mac/windows
-- 
2.39.5