Skip to content

Commit

Permalink
testautomation: Don't expect exp to yield exact floating point results
Browse files Browse the repository at this point in the history
In the Steam Runtime 1 'scout' environment, when compiling for i386
using the default gcc-4.6, Exp(34.125) matches the desired value to
6 decimal places but is not an exact match for the desired value.

Signed-off-by: Simon McVittie <[email protected]>
  • Loading branch information
smcv committed Jan 29, 2024
1 parent 7fbd85a commit 95a64e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/testautomation_math.c
Original file line number Diff line number Diff line change
Expand Up @@ -1092,7 +1092,7 @@ exp_regularCases(void *args)
{ 112.89, 10653788283588960962604279261058893737879589093376.0 },
{ 539.483, 1970107755334319939701129934673541628417235942656909222826926175622435588279443011110464355295725187195188154768877850257012251677751742837992843520967922303961718983154427294786640886286983037548604937796221048661733679844353544028160.0 },
};
return helper_dtod("Exp", SDL_exp, regular_cases, SDL_arraysize(regular_cases));
return helper_dtod_inexact("Exp", SDL_exp, regular_cases, SDL_arraysize(regular_cases));
}

/* SDL_log tests functions */
Expand Down

0 comments on commit 95a64e7

Please sign in to comment.