Show More
@@ -27,6 +27,8 b' Dummy extension simulating unsafe long r' | |||||
27 | > with ui.uninterruptible(): |
|
27 | > with ui.uninterruptible(): | |
28 | > testing.write_file(sync_file, b'%d' % os.getpid()) |
|
28 | > testing.write_file(sync_file, b'%d' % os.getpid()) | |
29 | > testing.wait_file(done_file) |
|
29 | > testing.wait_file(done_file) | |
|
30 | > # make sure we get rescheduled and the signal get a chance to be handled | |||
|
31 | > time.sleep(0.1) | |||
30 | > ui.warn(b"end of unsafe operation\n") |
|
32 | > ui.warn(b"end of unsafe operation\n") | |
31 | > ui.warn(b"%d second(s) passed\n" % int(time.time() - start)) |
|
33 | > ui.warn(b"%d second(s) passed\n" % int(time.time() - start)) | |
32 | > EOF |
|
34 | > EOF | |
@@ -40,6 +42,7 b' Dummy extension simulating unsafe long r' | |||||
40 | > fi |
|
42 | > fi | |
41 | > "$RUNTESTDIR/testlib/wait-on-file" 10 "$SYNC_FILE" || exit 2 |
|
43 | > "$RUNTESTDIR/testlib/wait-on-file" 10 "$SYNC_FILE" || exit 2 | |
42 | > kill -s \$SIG \`cat "$SYNC_FILE"\` |
|
44 | > kill -s \$SIG \`cat "$SYNC_FILE"\` | |
|
45 | > sleep 1 | |||
43 |
|
|
46 | > touch "$DONE_FILE" | |
44 | > EOF |
|
47 | > EOF | |
45 |
|
48 |
General Comments 0
You need to be logged in to leave comments.
Login now