From 97e9a0f5f6d2a47ebb77a164e37cf07f01d795fb Mon Sep 17 00:00:00 2001 From: Ryan Scott Date: Fri, 31 Mar 2023 19:03:27 -0400 Subject: [PATCH] disasm-test: Make treatment of assumed parameters more precise This ensures that we do not run test cases with assumed `tasty-sugar` parameters multiple times with later LLVM versions. --- disasm-test/Main.hs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/disasm-test/Main.hs b/disasm-test/Main.hs index faa1dced..04040465 100644 --- a/disasm-test/Main.hs +++ b/disasm-test/Main.hs @@ -307,7 +307,11 @@ runTest llvmVer sweet expct ] in case lookup "llvm-range" (TS.expParamsMatch expct) of Just (TS.Explicit v) -> specMatchesInstalled v - Just (TS.Assumed v) -> specMatchesInstalled v + Just (TS.Assumed v) + | v == "pre-llvm11" || v == "at-least-llvm12" + -> specMatchesInstalled v + | otherwise + -> False _ -> error "llvm-range unknown" -- | Assemble some llvm assembly, producing a bitcode file in /tmp.