1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

[tests] alarm after 5 seconds for elinks -test 1

This commit is contained in:
Witold Filipczyk 2024-06-01 19:02:29 +02:00
parent 05f97fa385
commit b57e1eb565

View File

@ -6,6 +6,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include "elinks.h"
@ -643,6 +644,10 @@ init_ecmascript_module(struct module *module)
char *xdg_config_home = get_xdg_config_home();
read_url_list();
if (program.testjs) {
alarm(5);
}
if (xdg_config_home) {
/* ecmascript console log */
console_log_filename = straconcat(xdg_config_home, "/console.log", NULL);