From 96cc41effbfda7e810d3035341642bc842da36fe Mon Sep 17 00:00:00 2001 From: Ryan Ward Date: Tue, 4 Jul 2023 13:25:18 -0400 Subject: [PATCH] Throw an error when things break --- .github/workflows/nix_ci.yml | 5 ----- tests/runtests.lua | 2 +- tests/threadtests.lua | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/nix_ci.yml b/.github/workflows/nix_ci.yml index 02f911d..d39bb2f 100644 --- a/.github/workflows/nix_ci.yml +++ b/.github/workflows/nix_ci.yml @@ -14,9 +14,6 @@ jobs: build-type: [Release] # Debug lua: ["lua 5.1", "lua 5.2", "lua 5.3", "lua 5.4", "luajit 2.1.0-beta3"] os: ["ubuntu-latest"] - include: - - os: macos-latest - macos_build_target: 10.0 runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 @@ -26,8 +23,6 @@ jobs: with: python-version: '3.8' - name: Setup env - env: - MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macos_build_target }} run: | pip install hererocks hererocks lua-pkg --${{ matrix.lua }} -rlatest diff --git a/tests/runtests.lua b/tests/runtests.lua index 1a89df6..a9811c3 100644 --- a/tests/runtests.lua +++ b/tests/runtests.lua @@ -20,7 +20,7 @@ end The expected and actual should "match" (Might be impossible when playing with threads) This will be pushed directly to the master as tests start existing. ]] -local multi, thread = require("multi"):init{print=true,warn=true,error=false}--{priority=true} +local multi, thread = require("multi"):init{print=true,warn=true,error=true}--{priority=true} local good = false local proc = multi:newProcessor("Test") diff --git a/tests/threadtests.lua b/tests/threadtests.lua index e859f22..79539ac 100644 --- a/tests/threadtests.lua +++ b/tests/threadtests.lua @@ -1,5 +1,5 @@ package.path = "../?/init.lua;../?.lua;"..package.path -multi, thread = require("multi"):init{}--{priority=true} +multi, thread = require("multi"):init{error=true,warning=true,print=true}--{priority=true} proc = multi:newProcessor("Thread Test",true) local LANES, LOVE, PSEUDO = 1, 2, 3 local env, we_good