diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-06 13:21:55 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-06 13:21:55 +0100 |
commit | 275074c50dca7b941cc7cd7966a2ace71c29ecae (patch) | |
tree | e22b9ca529098f2d687b61bc9b0eb711b0990cc3 /dev-haskell/skylighting-core/files | |
parent | 86b151cdc26e1566efef728aac4ebb2aabce776a (diff) |
gentoo auto-resync : 06:10:2022 - 13:21:55
Diffstat (limited to 'dev-haskell/skylighting-core/files')
-rw-r--r-- | dev-haskell/skylighting-core/files/skylighting-increase-timeouts.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/dev-haskell/skylighting-core/files/skylighting-increase-timeouts.patch b/dev-haskell/skylighting-core/files/skylighting-increase-timeouts.patch new file mode 100644 index 000000000000..8dce65f4c855 --- /dev/null +++ b/dev-haskell/skylighting-core/files/skylighting-increase-timeouts.patch @@ -0,0 +1,39 @@ +https://github.com/jgm/skylighting/pull/154 + +From 00af1d629c2f185fd3c8d3eee55857b1325f345b Mon Sep 17 00:00:00 2001 +From: matoro <matoro@users.noreply.github.com> +Date: Fri, 16 Sep 2022 10:30:35 -0400 +Subject: [PATCH] Notch up core test timeout even further + +On very slow/embedded cpus, 25 seconds is not sufficient (even 50 +seconds is not); I had to notch the test timeout up to 75 seconds for +everything to pass. + +This disables the test timeouts completely. +--- + test/test-skylighting.hs | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/test/test-skylighting.hs b/test/test-skylighting.hs +index a3977e72..0f05e573 100644 +--- a/test/test-skylighting.hs ++++ b/test/test-skylighting.hs +@@ -224,8 +224,7 @@ p_no_drop cfg syntax t = + + noDropTest :: TokenizerConfig -> [Text] -> Syntax -> TestTree + noDropTest cfg inps syntax = +- localOption (mkTimeout 25000000) +- $ testCase (Text.unpack (sName syntax)) ++ testCase (Text.unpack (sName syntax)) + $ mapM_ go inps + where go inp = + case tokenize cfg syntax inp of +@@ -238,7 +237,7 @@ noDropTest cfg inps syntax = + assertFailure ("Unexpected error: " ++ e ++ "\ninput = " ++ show inp) + + tokenizerTest :: TokenizerConfig -> SyntaxMap -> Bool -> FilePath -> TestTree +-tokenizerTest cfg sMap regen inpFile = localOption (mkTimeout 25000000) $ ++tokenizerTest cfg sMap regen inpFile = + goldenTest testname getExpected getActual + (compareValues referenceFile) updateGolden + where testname = lang ++ " tokenizing of " ++ inpFile |