Show More
@@ -634,3 +634,7 b' def has_zstd():' | |||
|
634 | 634 | return True |
|
635 | 635 | except ImportError: |
|
636 | 636 | return False |
|
637 | ||
|
638 | @check("devfull", "/dev/full special file") | |
|
639 | def has_dev_full(): | |
|
640 | return os.path.exists('/dev/full') |
@@ -16,10 +16,31 b' Create a repository:' | |||
|
16 | 16 | $ hg init t |
|
17 | 17 | $ cd t |
|
18 | 18 | |
|
19 |
|
|
|
19 | Prepare a changeset: | |
|
20 | 20 | |
|
21 | 21 | $ echo a > a |
|
22 | 22 | $ hg add a |
|
23 | ||
|
24 | $ hg status | |
|
25 | A a | |
|
26 | ||
|
27 | Writes to stdio succeed and fail appropriately | |
|
28 | ||
|
29 | #if devfull | |
|
30 | $ hg status 2>/dev/full | |
|
31 | A a | |
|
32 | ||
|
33 | $ hg status >/dev/full | |
|
34 | abort: No space left on device | |
|
35 | [255] | |
|
36 | ||
|
37 | $ hg status >/dev/full 2>&1 | |
|
38 | [1] | |
|
39 | ||
|
40 | $ hg status ENOENT 2>/dev/full | |
|
41 | [1] | |
|
42 | #endif | |
|
43 | ||
|
23 | 44 | $ hg commit -m test |
|
24 | 45 | |
|
25 | 46 | This command is ancient: |
General Comments 0
You need to be logged in to leave comments.
Login now