aboutsummaryrefslogtreecommitdiff
path: root/tests/SCsub
diff options
context:
space:
mode:
author Spartan322 <Megacake1234@gmail.com>2024-08-01 02:39:48 +0200
committer Spartan322 <Megacake1234@gmail.com>2024-08-02 00:59:42 +0200
commitc7c080987e44f606bed73dd8b0c2747e7b386f41 (patch)
tree7d7775dce507efd83afa2ba452ec5b227e35ebb0 /tests/SCsub
parent847280022ec8afb35d7d8639afd639c5ec42e3c7 (diff)
Add `\x8F` to `Ę` conversion for Windows-1252fix/polish-todos
To support special vanilla Polish TODOs that break utf8 Add CSV Win1252->Utf8 conversion tests Fix map_value warning not triggering Optimize for ascii characters
Diffstat (limited to 'tests/SCsub')
-rw-r--r--tests/SCsub5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/SCsub b/tests/SCsub
index 0a18777..49e2742 100644
--- a/tests/SCsub
+++ b/tests/SCsub
@@ -47,6 +47,11 @@ tests_env.tests_sources = env.GlobRecursive("*.cpp", [source_path])
SConscript("deps/SCsub", {"env": tests_env })
+# Blame Ubuntu 22's GCC-12 distribution for this crap
+# Compiler bug hangs if it can see if there is any reference to \x8F in a character
+if env["ubuntu_gcc_invalid_char_hang_bug"]:
+ tests_env.Append(CPPDEFINES=["_OVDL_TEST_UBUNTU_GCC_12_BUG_"])
+
tests_program = tests_env.UnitTest(
source=tests_env.tests_sources,
target=os.path.join(BINDIR, tests_name),