diff test/org/tmatesoft/hg/test/TestRepositoryLock.java @ 616:5e0313485eef

encode directories as demanded by fncache format
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Tue, 14 May 2013 17:31:35 +0200
parents 84104448a0bf
children 8a5cdcb27b8f
line wrap: on
line diff
--- a/test/org/tmatesoft/hg/test/TestRepositoryLock.java	Mon May 13 22:48:29 2013 +0200
+++ b/test/org/tmatesoft/hg/test/TestRepositoryLock.java	Tue May 14 17:31:35 2013 +0200
@@ -37,13 +37,15 @@
 		// turn off lock timeout, to fail fast
 		File hgrc = new File(repoLoc, ".hg/hgrc");
 		RepoUtils.createFile(hgrc, "[ui]\ntimeout=0\n"); // or 1
-		ExecHelper eh = new ExecHelper(new OutputParser.Stub(true), repoLoc);
+		final OutputParser.Stub p = new OutputParser.Stub();
+		ExecHelper eh = new ExecHelper(p, repoLoc);
 		HgRepository hgRepo = new HgLookup().detect(repoLoc);
 		final HgRepositoryLock wdLock = hgRepo.getWorkingDirLock();
 		try {
 			wdLock.acquire();
 			eh.run("hg", "tag", "tag-aaa");
 			Assert.assertNotSame(0 /*returns 0 on success*/, eh.getExitValue());
+			Assert.assertTrue(p.result().toString().contains("abort"));
 		} finally {
 			wdLock.release();
 		}