- Timestamp:
- Oct 27, 2018 6:16:46 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstRTCRest-1.cpp
r75037 r75123 832 832 RTTESTI_CHECK(obj4.isNull() == false); 833 833 834 RTTESTI_CHECK_RC(fromString(&obj4, TST_DBL_MIN_STRING1, &ErrInfo, RT_XSTR(__LINE__)), VINF_SUCCESS); 835 RTTESTI_CHECK(obj4.m_rdValue == TST_DBL_MIN); 836 RTTESTI_CHECK(obj4.isNull() == false); 834 #if defined(RT_OS_LINUX) || defined(RT_OS_SOLARIS) 835 /* Some linux systems and probably all solaris fail to parse the longer MIN string, so just detect and skip. */ 836 RTJSONVAL hTmpValue = NIL_RTJSONVAL; 837 int rcTmp = RTJsonParseFromString(&hTmpValue, TST_DBL_MIN_STRING1, NULL); 838 RTJsonValueRelease(hTmpValue); 839 if (rcTmp != VERR_INVALID_PARAMETER) 840 #endif 841 { 842 RTTESTI_CHECK_RC(fromString(&obj4, TST_DBL_MIN_STRING1, &ErrInfo, RT_XSTR(__LINE__)), VINF_SUCCESS); 843 RTTESTI_CHECK(obj4.m_rdValue == TST_DBL_MIN); 844 RTTESTI_CHECK(obj4.isNull() == false); 845 } 837 846 838 847 obj4.m_rdValue = 33.33; … … 864 873 RTTESTI_CHECK_RC(fromString(&obj4, "false", NULL, RT_XSTR(__LINE__)), VERR_NO_DIGITS); 865 874 866 #if defined(RT_OS_WINDOWS) 875 #if defined(RT_OS_WINDOWS) || defined(RT_OS_SOLARIS) 867 876 RTTESTI_CHECK_RC(fromString(&obj4, " 0x42 ", &ErrInfo, RT_XSTR(__LINE__)), VERR_TRAILING_CHARS); 868 877 RTTESTI_CHECK(obj4.m_rdValue == 0.0); … … 2258 2267 int main() 2259 2268 { 2260 RTEXITCODE rcExit = RTTestInitAndCreate("tstRT Rest-1", &g_hTest);2269 RTEXITCODE rcExit = RTTestInitAndCreate("tstRTCRest-1", &g_hTest); 2261 2270 if (rcExit == RTEXITCODE_SUCCESS ) 2262 2271 {
Note:
See TracChangeset
for help on using the changeset viewer.