@@ -506,7 +506,7 @@ static bool OPTIMIZE3 stress_strnum_strfromf(stress_args_t *args, const stress_s
506506 (void )strfromf (str , sizeof (str ), "%.7f" , stress_strnum_float );
507507 posn = stress_strnum_trunc_posn (str , 4 );
508508 if (posn ) {
509- if (strncmp (str , stress_strnum_float_str , posn )) {
509+ if (shim_strncmp (str , stress_strnum_float_str , posn )) {
510510 pr_fail ("%s: strfromf(str, sizeof(str), \"%%.7f\", %.7f) failed, got %s, expecting %s\n" ,
511511 args -> name , (double )stress_strnum_float , str , stress_strnum_float_str );
512512 return false;
@@ -526,7 +526,7 @@ static bool OPTIMIZE3 stress_strnum_strfromd(stress_args_t *args, const stress_s
526526
527527 (void )strfromd (str , sizeof (str ), "%.7g" , stress_strnum_double );
528528 posn = stress_strnum_trunc_posn (str , 6 );
529- if (strncmp (str , stress_strnum_double_str , posn )) {
529+ if (shim_strncmp (str , stress_strnum_double_str , posn )) {
530530 pr_fail ("%s: strfromd(str, sizeof(str), \"%%.7g\", %.7g) failed, got %s, expecting %s\n" ,
531531 args -> name , stress_strnum_double , str , stress_strnum_double_str );
532532 return false;
@@ -545,7 +545,7 @@ static bool OPTIMIZE3 stress_strnum_strfroml(stress_args_t *args, const stress_s
545545
546546 (void )strfroml (str , sizeof (str ), "%.7f" , stress_strnum_long_double );
547547 posn = stress_strnum_trunc_posn (str , 6 );
548- if (strncmp (str , stress_strnum_long_double_str , posn )) {
548+ if (shim_strncmp (str , stress_strnum_long_double_str , posn )) {
549549 pr_fail ("%s: strfroml(str, sizeof(str), \"%%.7f\", %.7Lf) failed, got %s, expecting %s\n" ,
550550 args -> name , stress_strnum_long_double , str , stress_strnum_long_double_str );
551551 return false;
0 commit comments