* update to match real function names
This commit was SVN r3449.
Этот коммит содержится в:
родитель
9f0dde5e7e
Коммит
4e67bf4646
@ -14,11 +14,11 @@ main(int argc, char *argv[])
|
||||
|
||||
test_init("ompi_numtostr_t");
|
||||
|
||||
tst = ltostr(10);
|
||||
tst = ompi_ltostr(10);
|
||||
expected = malloc(sizeof(long) * 8);
|
||||
snprintf(expected, sizeof(long) * 8, "%d", 10);
|
||||
if (strcmp(tst, expected) != 0) {
|
||||
test_failure("ltostr test failed");
|
||||
test_failure("ompi_ltostr test failed");
|
||||
}
|
||||
else {
|
||||
test_success();
|
||||
@ -27,11 +27,11 @@ main(int argc, char *argv[])
|
||||
free(tst);
|
||||
free(expected);
|
||||
|
||||
tst = dtostr(5.32);
|
||||
tst = ompi_dtostr(5.32);
|
||||
expected = malloc(sizeof(long) * 8);
|
||||
snprintf(expected, sizeof(long) * 8, "%f", 5.32);
|
||||
if (strcmp(tst, expected) != 0) {
|
||||
test_failure("dtostr test failed");
|
||||
test_failure("ompi_dtostr test failed");
|
||||
}
|
||||
else {
|
||||
test_success();
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user