summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild.sh9
-rw-r--r--indra/llcommon/tests/llstring_test.cpp4
2 files changed, 11 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 0edbca386d..60c62970df 100755
--- a/build.sh
+++ b/build.sh
@@ -192,8 +192,17 @@ pre_build()
# honor autobuild_configure_parameters same as sling-buildscripts
eval_autobuild_configure_parameters=$(eval $(echo echo $autobuild_configure_parameters))
+ # We build the viewer on Linux, but we haven't committed to support the
+ # Linux viewer. As of 2024-05-30, Linux build-time test infrastructure is
+ # not in place, so don't even bother running tests on Linux.
+ if [[ "$RUNNER_OS" == "Linux" ]]
+ then LL_TESTS=OFF
+ else LL_TESTS=ON
+ fi
+
"$autobuild" configure --quiet -c $variant \
${eval_autobuild_configure_parameters:---} \
+ -DLL_TESTS:BOOL=$LL_TESTS \
-DPACKAGE:BOOL=ON \
-DHAVOK:BOOL="$HAVOK" \
-DRELEASE_CRASH_REPORTING:BOOL="$RELEASE_CRASH_REPORTING" \
diff --git a/indra/llcommon/tests/llstring_test.cpp b/indra/llcommon/tests/llstring_test.cpp
index 3fadfa5334..ea5b0ee5fc 100644
--- a/indra/llcommon/tests/llstring_test.cpp
+++ b/indra/llcommon/tests/llstring_test.cpp
@@ -377,7 +377,7 @@ namespace tut
{
F32 value;
std::string str_val("2147483647"); //0x7FFFFFFF
- ensure("1: convertToF32 failed", LLStringUtil::convertToF32(str_val, value) && value == 2147483647);
+ ensure("1: convertToF32 failed", LLStringUtil::convertToF32(str_val, value) && value == 2147483647.f);
str_val = "0";
ensure("2: convertToF32 failed", LLStringUtil::convertToF32(str_val, value) && value == 0);
@@ -399,7 +399,7 @@ namespace tut
{
F64 value;
std::string str_val("9223372036854775807"); //0x7FFFFFFFFFFFFFFF
- ensure("1: convertToF64 failed", LLStringUtil::convertToF64(str_val, value) && value == 9223372036854775807LL);
+ ensure("1: convertToF64 failed", LLStringUtil::convertToF64(str_val, value) && value == 9223372036854775807.);
str_val = "0";
ensure("2: convertToF64 failed", LLStringUtil::convertToF64(str_val, value) && value == 0.0F);