From 9a2d6a9d2da4e6c7923e13656e50dbbe7517b6a8 Mon Sep 17 00:00:00 2001 From: jprocter Date: Tue, 11 Oct 2005 21:15:55 +0000 Subject: [PATCH] ClientsFileTest debugged and verified. git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@61 be28352e-c001-0410-b1a7-c7978e42abec --- .externalToolBuilders/ClientsFileTest.launch | 4 ++-- src/org/vamsas/client/simpleclient/ClientsFile.java | 4 ++-- src/org/vamsas/test/simpleclient/ClientsFileTest.java | 9 ++++----- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.externalToolBuilders/ClientsFileTest.launch b/.externalToolBuilders/ClientsFileTest.launch index eb9c44d..ab2a7fe 100644 --- a/.externalToolBuilders/ClientsFileTest.launch +++ b/.externalToolBuilders/ClientsFileTest.launch @@ -1,12 +1,12 @@ - + + - diff --git a/src/org/vamsas/client/simpleclient/ClientsFile.java b/src/org/vamsas/client/simpleclient/ClientsFile.java index 8f938f6..4d34039 100644 --- a/src/org/vamsas/client/simpleclient/ClientsFile.java +++ b/src/org/vamsas/client/simpleclient/ClientsFile.java @@ -172,7 +172,7 @@ public class ClientsFile { for (int k=0,i = 0, j = clients.length; i < j; i++) if (i!=mynum) newlist[k++] = clients[i]; - if (!putClientList(clients)) + if (!putClientList(newlist)) throw new Error("Failed to write new clientList!"); // failed to put the clientList to disk. } } @@ -187,7 +187,7 @@ public class ClientsFile { * Note: Caller is left to release the lock on the ClientList. * @param me * @param disambiguate - - * flag indicating if the URN for me should be disambiguate to + * flag indicating if the URN for me should be disambiguated to * differentiate between sessions. * @return index of clientHandle in new list, or -1-position of existing * clientHandle (if disambiguate is true) diff --git a/src/org/vamsas/test/simpleclient/ClientsFileTest.java b/src/org/vamsas/test/simpleclient/ClientsFileTest.java index 705c1fc..9339600 100644 --- a/src/org/vamsas/test/simpleclient/ClientsFileTest.java +++ b/src/org/vamsas/test/simpleclient/ClientsFileTest.java @@ -30,9 +30,8 @@ public class ClientsFileTest { e.printStackTrace(System.err); return; } - int argc=0; + int argc=1; while (argc