public inbox for mauve-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "Jeroen Frijters" <jeroen@sumatra.nl>
To: "Mark Wielaard" <mark@klomp.org>, <mauve-discuss@sources.redhat.com>
Subject: RE: New locks tests need -Dmauve.vmexec set
Date: Mon, 01 Aug 2005 09:30:00 -0000	[thread overview]
Message-ID: <D92197D0A6547B44A1567814F851FA680CAF63@LEMBU.sumatrasoftware.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 566 bytes --]

Mark Wielaard wrote:
> I just checked in the following for the new file lock tests.

Thanks, this is a really awesome test!

> I have updated runner to pass -Dmauve.vmexec=$RUNTIME.

This is nice feature that might be helpful for other tests as well.
Maybe we should add a method to TestHarness to start up a new VM?

I made one small change to your code, to first stop the seconday process
and only then delete the file, because on Windows you cannot delete that
is open (unless you explicitly allow this, which the JVMs don't do).

Regards,
Jeroen

[-- Attachment #2: lock.patch.txt --]
[-- Type: text/plain, Size: 699 bytes --]

Index: gnu/testlet/java/nio/channels/FileChannel/lock.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/java/nio/channels/FileChannel/lock.java,v
retrieving revision 1.1
diff -u -r1.1 lock.java
--- gnu/testlet/java/nio/channels/FileChannel/lock.java	31 Jul 2005 17:42:53 -0000	1.1
+++ gnu/testlet/java/nio/channels/FileChannel/lock.java	1 Aug 2005 09:21:03 -0000
@@ -179,7 +179,6 @@
 		harness.debug(ioe);
 	      }
 	  }
-	harness.check(file.delete(), "cleanup " + file);
 
 	try
 	  {
@@ -199,6 +198,8 @@
 	  {
 	    harness.debug(ie);
 	  }
+
+	harness.check(file.delete(), "cleanup " + file);
       }
   }
 

             reply	other threads:[~2005-08-01  9:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-01  9:30 Jeroen Frijters [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-07-31 18:08 Mark Wielaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=D92197D0A6547B44A1567814F851FA680CAF63@LEMBU.sumatrasoftware.com \
    --to=jeroen@sumatra.nl \
    --cc=mark@klomp.org \
    --cc=mauve-discuss@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).