Commit 1ff3404e authored by o9000's avatar o9000

Update periodic testing scripts

parent 41190204
......@@ -79,7 +79,7 @@ void destroy_button(void *obj)
if (button->backend->instances) {
fprintf(stderr, "tint2: Error: Attempt to destroy backend while there are still frontend instances!\n");
exit(-1);
exit(EXIT_FAILURE);
}
free(button->backend);
free(button);
......
......@@ -109,7 +109,7 @@ void destroy_execp(void *obj)
if (execp->backend->instances) {
fprintf(stderr, "tint2: Error: Attempt to destroy backend while there are still frontend instances!\n");
exit(-1);
exit(EXIT_FAILURE);
}
free(execp->backend);
free(execp);
......
......@@ -75,7 +75,7 @@ void handle_cli_arguments(int argc, char **argv)
}
if (error) {
print_usage();
exit(1);
exit(EXIT_FAILURE);
}
}
}
......@@ -184,7 +184,7 @@ void init_X11_pre_config()
server.display = XOpenDisplay(NULL);
if (!server.display) {
fprintf(stderr, "tint2: could not open display!\n");
exit(1);
exit(EXIT_FAILURE);
}
server.x11_fd = ConnectionNumber(server.display);
XSetErrorHandler((XErrorHandler)server_catch_error);
......
......@@ -808,7 +808,7 @@ Imlib_Image load_image(const char *path, int cached)
GdkPixbuf *pixbuf = rsvg_handle_get_pixbuf(svg);
gdk_pixbuf_save(pixbuf, tmp_filename, "png", NULL, NULL);
}
exit(0);
_exit(0);
} else {
// Parent
close(fd);
......
......@@ -160,7 +160,7 @@ def test(tint2path, config, use_asan):
start_wm()
sleep(1)
os.environ["DEBUG_FPS"] = "1"
os.environ["ASAN_OPTIONS"] = "detect_leaks=1"
os.environ["ASAN_OPTIONS"] = "detect_leaks=1:exitcode=0"
tint2 = run([tint2path, "-c", config], True)
if tint2.poll() != None:
raise RuntimeError("tint2 failed to start")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment