n = test->repeat;
expected = &test->result;
+ ret = NJS_ERROR;
us = njs_time() / 1000;
for (i = 0; i < n; i++) {
success = njs_strstr_eq(expected, &s);
if (!success) {
- njs_printf("failed: \"%V\" vs \"%V\"\n", expected, &s);
+ njs_printf("%s failed: \"%V\" vs \"%V\"\n", test->name, expected,
+ &s);
goto done;
}
{ "external object property ($shared.props.a)",
njs_str("$shared.props.a"),
- njs_str("4294967295"),
+ njs_str("11"),
1000 },
{ "external dump (JSON.stringify($shared.header))",
njs_vm_start(vm);
- ret = EXIT_FAILURE;
-
ret = njs_vm_array_alloc(vm, &report, 8);
if (ret != NJS_OK) {
njs_printf("njs_vm_array_alloc() failed\n");