D922: test-basic: make test compatible with chg
singhsrb (Saurabh Singh)
phabricator at mercurial-scm.org
Tue Oct 3 19:10:12 UTC 2017
singhsrb created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
The error codes returned when writing to /dev/full are different after
the first failure with and without '--chg' option. Therefore, this commit
conditionally handles the error codes as appropriate.
TEST PLAN
Ran the test 'test-basic.t' with and without '--chg' option.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D922
AFFECTED FILES
tests/test-basic.t
CHANGE DETAILS
diff --git a/tests/test-basic.t b/tests/test-basic.t
--- a/tests/test-basic.t
+++ b/tests/test-basic.t
@@ -31,14 +31,24 @@
$ hg status >/dev/full
abort: No space left on device
[255]
+#endif
+#if devfull no-chg
$ hg status >/dev/full 2>&1
[1]
$ hg status ENOENT 2>/dev/full
[1]
#endif
+#if devfull chg
+ $ hg status >/dev/full 2>&1
+ [255]
+
+ $ hg status ENOENT 2>/dev/full
+ [255]
+#endif
+
$ hg commit -m test
This command is ancient:
To: singhsrb, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list