summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPouleyKetchoupp <pouleyketchoup@gmail.com>2019-08-11 12:17:18 +0200
committerPouleyKetchoupp <pouleyketchoup@gmail.com>2019-08-11 12:17:18 +0200
commit360fb0ffa80d807ae0334a9f4f1c9c4833a383b1 (patch)
treed4730c4e66bac33d5934698dbcd666ed69b00c68
parente578c1fef86b8b1307e9ceb089b6efd5e53a5f18 (diff)
Fixed link errors when building in debug with option module_regex_enabled=no
-rw-r--r--main/tests/test_string.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/tests/test_string.cpp b/main/tests/test_string.cpp
index ab5fb64252..7a41880645 100644
--- a/main/tests/test_string.cpp
+++ b/main/tests/test_string.cpp
@@ -432,6 +432,10 @@ bool test_26() {
OS::get_singleton()->print("\n\nTest 26: RegEx substitution\n");
+#ifndef MODULE_REGEX_ENABLED
+ OS::get_singleton()->print("\tRegEx module disabled, can't run test.");
+ return false;
+#else
String s = "Double all the vowels.";
OS::get_singleton()->print("\tString: %ls\n", s.c_str());
@@ -443,6 +447,7 @@ bool test_26() {
OS::get_singleton()->print("\tResult: %ls\n", s.c_str());
return (s == "Doouublee aall thee vooweels.");
+#endif
}
struct test_27_data {