| File tests/lua/api_jobs.c changed (mode: 100644) (index 941b2779b..ae4e1c395) |
| ... |
... |
TEST(vifmjob_terminate_after_finish) |
| 307 |
307 |
|
|
| 308 |
308 |
TEST(vifmjob_terminate_running) |
TEST(vifmjob_terminate_running) |
| 309 |
309 |
{ |
{ |
| 310 |
|
GLUA_EQ(vlua, "", "job = vifm.startjob { cmd = 'sleep 10' }"); |
|
|
310 |
|
// Building with sanitizers using `gcc (Debian 14.2.0-19) 14.2.0` resulted in |
|
311 |
|
// this test failing without `exec` because it apparently kills parent of |
|
312 |
|
// `sleep 10` without getting a notification about it (while `sleep 10` keeps |
|
313 |
|
// running in background). |
|
314 |
|
// |
|
315 |
|
// This has never showed up without sanitizers, so assuming its a bug there. |
|
316 |
|
GLUA_EQ(vlua, "", "job = vifm.startjob { cmd = 'exec sleep 10' }"); |
| 311 |
317 |
GLUA_EQ(vlua, "true", "print(job:terminate() == nil)"); |
GLUA_EQ(vlua, "true", "print(job:terminate() == nil)"); |
| 312 |
318 |
|
|
| 313 |
319 |
time_t t1 = time(NULL); |
time_t t1 = time(NULL); |