1999-12-03 00:44:01 +00:00
|
|
|
#include "nsILocalFile.h"
|
2002-04-27 05:33:09 +00:00
|
|
|
#include "nsString.h"
|
1999-10-25 22:45:12 +00:00
|
|
|
|
2001-11-23 22:36:54 +00:00
|
|
|
#include <stdio.h>
|
2001-12-20 02:09:49 +00:00
|
|
|
#include "nsXPCOM.h"
|
1999-10-25 22:45:12 +00:00
|
|
|
#include "nsIComponentManager.h"
|
2002-01-29 21:22:13 +00:00
|
|
|
#include "nsIComponentRegistrar.h"
|
1999-10-25 22:45:12 +00:00
|
|
|
#include "nsIServiceManager.h"
|
2000-06-03 09:46:12 +00:00
|
|
|
#include "nsIMemory.h"
|
1999-11-29 15:17:57 +00:00
|
|
|
#include "nsXPIDLString.h"
|
1999-10-25 22:45:12 +00:00
|
|
|
|
|
|
|
void Passed();
|
|
|
|
void Failed(const char* explanation = nsnull);
|
|
|
|
void Inspect();
|
|
|
|
void Banner(const char* bannerString);
|
|
|
|
|
|
|
|
void VerifyResult(nsresult rv)
|
|
|
|
{
|
|
|
|
if (NS_FAILED(rv))
|
|
|
|
{
|
|
|
|
Failed("rv failed");
|
|
|
|
printf("rv = %d\n", rv);
|
|
|
|
}
|
|
|
|
}
|
1999-11-29 15:17:57 +00:00
|
|
|
//----------------------------------------------------------------------------
|
1999-10-25 22:45:12 +00:00
|
|
|
void Banner(const char* bannerString)
|
1999-11-29 15:17:57 +00:00
|
|
|
//----------------------------------------------------------------------------
|
1999-10-25 22:45:12 +00:00
|
|
|
{
|
|
|
|
printf("---------------------------\n");
|
|
|
|
printf("%s\n", bannerString);
|
|
|
|
printf("---------------------------\n");
|
|
|
|
}
|
|
|
|
|
1999-11-29 15:17:57 +00:00
|
|
|
//----------------------------------------------------------------------------
|
1999-10-25 22:45:12 +00:00
|
|
|
void Passed()
|
1999-11-29 15:17:57 +00:00
|
|
|
//----------------------------------------------------------------------------
|
1999-10-25 22:45:12 +00:00
|
|
|
{
|
|
|
|
printf("Test passed.");
|
|
|
|
}
|
|
|
|
|
1999-11-29 15:17:57 +00:00
|
|
|
//----------------------------------------------------------------------------
|
1999-10-25 22:45:12 +00:00
|
|
|
void Failed(const char* explanation)
|
1999-11-29 15:17:57 +00:00
|
|
|
//----------------------------------------------------------------------------
|
1999-10-25 22:45:12 +00:00
|
|
|
{
|
|
|
|
printf("ERROR : Test failed.\n");
|
|
|
|
printf("REASON: %s.\n", explanation);
|
|
|
|
}
|
|
|
|
|
1999-11-29 15:17:57 +00:00
|
|
|
//----------------------------------------------------------------------------
|
1999-10-25 22:45:12 +00:00
|
|
|
void Inspect()
|
1999-11-29 15:17:57 +00:00
|
|
|
//----------------------------------------------------------------------------
|
1999-10-25 22:45:12 +00:00
|
|
|
{
|
|
|
|
printf("^^^^^^^^^^ PLEASE INSPECT OUTPUT FOR ERRORS\n");
|
|
|
|
}
|
|
|
|
|
1999-12-03 00:44:01 +00:00
|
|
|
void GetPaths(nsILocalFile* file)
|
1999-10-25 22:45:12 +00:00
|
|
|
{
|
|
|
|
nsresult rv;
|
2002-04-27 05:33:09 +00:00
|
|
|
nsCAutoString pathName;
|
1999-10-25 22:45:12 +00:00
|
|
|
|
1999-12-03 00:44:01 +00:00
|
|
|
printf("Getting Path\n");
|
1999-10-25 22:45:12 +00:00
|
|
|
|
2002-04-27 05:33:09 +00:00
|
|
|
rv = file->GetNativePath(pathName);
|
1999-10-25 22:45:12 +00:00
|
|
|
VerifyResult(rv);
|
|
|
|
|
2002-04-27 05:33:09 +00:00
|
|
|
printf("filepath: %s\n", pathName.get());
|
1999-10-25 22:45:12 +00:00
|
|
|
}
|
|
|
|
|
2001-11-07 06:24:10 +00:00
|
|
|
void InitTest(const char* creationPath, const char* appendPath)
|
1999-10-25 22:45:12 +00:00
|
|
|
{
|
1999-12-03 00:44:01 +00:00
|
|
|
nsILocalFile* file = nsnull;
|
2000-09-13 23:57:52 +00:00
|
|
|
nsresult rv = nsComponentManager::CreateInstance(NS_LOCAL_FILE_CONTRACTID,
|
1999-12-03 00:44:01 +00:00
|
|
|
nsnull,
|
2000-01-11 20:49:15 +00:00
|
|
|
NS_GET_IID(nsILocalFile),
|
1999-12-03 00:44:01 +00:00
|
|
|
(void**)&file);
|
1999-10-25 22:45:12 +00:00
|
|
|
|
|
|
|
if (NS_FAILED(rv) || (!file))
|
|
|
|
{
|
1999-12-03 00:44:01 +00:00
|
|
|
printf("create nsILocalFile failed\n");
|
1999-10-25 22:45:12 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2002-04-27 05:33:09 +00:00
|
|
|
nsCAutoString leafName;
|
1999-10-25 22:45:12 +00:00
|
|
|
|
|
|
|
Banner("InitWithPath");
|
|
|
|
printf("creationPath == %s\nappendPath == %s\n", creationPath, appendPath);
|
|
|
|
|
2002-04-27 05:33:09 +00:00
|
|
|
rv = file->InitWithNativePath(nsDependentCString(creationPath));
|
1999-10-25 22:45:12 +00:00
|
|
|
VerifyResult(rv);
|
|
|
|
|
|
|
|
printf("Getting Filename\n");
|
2002-04-27 05:33:09 +00:00
|
|
|
rv = file->GetNativeLeafName(leafName);
|
|
|
|
printf(" %s\n", leafName.get());
|
1999-10-25 22:45:12 +00:00
|
|
|
VerifyResult(rv);
|
|
|
|
|
|
|
|
printf("Appending %s \n", appendPath);
|
2002-04-27 05:33:09 +00:00
|
|
|
rv = file->AppendNative(nsDependentCString(appendPath));
|
1999-10-25 22:45:12 +00:00
|
|
|
VerifyResult(rv);
|
|
|
|
|
|
|
|
printf("Getting Filename\n");
|
2002-04-27 05:33:09 +00:00
|
|
|
rv = file->GetNativeLeafName(leafName);
|
|
|
|
printf(" %s\n", leafName.get());
|
1999-10-25 22:45:12 +00:00
|
|
|
VerifyResult(rv);
|
|
|
|
|
|
|
|
GetPaths(file);
|
|
|
|
|
|
|
|
|
1999-11-29 15:17:57 +00:00
|
|
|
printf("Check For Existence\n");
|
1999-10-25 22:45:12 +00:00
|
|
|
|
|
|
|
PRBool exists;
|
1999-11-29 15:17:57 +00:00
|
|
|
file->Exists(&exists);
|
1999-10-25 22:45:12 +00:00
|
|
|
|
|
|
|
if (exists)
|
|
|
|
printf("Yup!\n");
|
|
|
|
else
|
|
|
|
printf("no.\n");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2001-11-07 06:24:10 +00:00
|
|
|
void CreationTest(const char* creationPath, const char* appendPath,
|
1999-11-29 15:17:57 +00:00
|
|
|
PRInt32 whatToCreate, PRInt32 perm)
|
1999-10-25 22:45:12 +00:00
|
|
|
{
|
1999-12-03 00:44:01 +00:00
|
|
|
nsCOMPtr<nsILocalFile> file;
|
1999-11-29 15:17:57 +00:00
|
|
|
nsresult rv =
|
2000-09-13 23:57:52 +00:00
|
|
|
nsComponentManager::CreateInstance(NS_LOCAL_FILE_CONTRACTID,
|
1999-12-03 00:44:01 +00:00
|
|
|
nsnull,
|
2000-01-11 20:49:15 +00:00
|
|
|
NS_GET_IID(nsILocalFile),
|
1999-12-03 00:44:01 +00:00
|
|
|
(void **)getter_AddRefs(file));
|
|
|
|
|
1999-10-25 22:45:12 +00:00
|
|
|
if (NS_FAILED(rv) || (!file))
|
|
|
|
{
|
1999-12-03 00:44:01 +00:00
|
|
|
printf("create nsILocalFile failed\n");
|
1999-10-25 22:45:12 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
Banner("Creation Test");
|
|
|
|
printf("creationPath == %s\nappendPath == %s\n", creationPath, appendPath);
|
|
|
|
|
2002-04-27 05:33:09 +00:00
|
|
|
rv = file->InitWithNativePath(nsDependentCString(creationPath));
|
1999-10-25 22:45:12 +00:00
|
|
|
VerifyResult(rv);
|
|
|
|
|
|
|
|
printf("Appending %s\n", appendPath);
|
2002-04-27 05:33:09 +00:00
|
|
|
rv = file->AppendRelativeNativePath(nsDependentCString(appendPath));
|
1999-10-25 22:45:12 +00:00
|
|
|
VerifyResult(rv);
|
|
|
|
|
2000-05-01 22:26:26 +00:00
|
|
|
printf("Check For Existence\n");
|
1999-10-25 22:45:12 +00:00
|
|
|
|
|
|
|
PRBool exists;
|
1999-11-29 15:17:57 +00:00
|
|
|
file->Exists(&exists);
|
1999-10-25 22:45:12 +00:00
|
|
|
|
|
|
|
if (exists)
|
|
|
|
printf("Yup!\n");
|
|
|
|
else
|
|
|
|
printf("no.\n");
|
|
|
|
|
|
|
|
|
|
|
|
rv = file->Create(whatToCreate, perm);
|
|
|
|
VerifyResult(rv);
|
|
|
|
|
1999-11-29 15:17:57 +00:00
|
|
|
rv = file->Exists(&exists);
|
1999-10-25 22:45:12 +00:00
|
|
|
VerifyResult(rv);
|
|
|
|
|
|
|
|
|
|
|
|
if (!exists)
|
|
|
|
{
|
|
|
|
Failed("Did not create file system object!");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2000-01-24 21:28:28 +00:00
|
|
|
|
2001-11-07 06:24:10 +00:00
|
|
|
void CreateUniqueTest(const char* creationPath, const char* appendPath,
|
2000-06-28 06:14:09 +00:00
|
|
|
PRInt32 whatToCreate, PRInt32 perm)
|
|
|
|
{
|
|
|
|
nsCOMPtr<nsILocalFile> file;
|
|
|
|
nsresult rv =
|
2000-09-13 23:57:52 +00:00
|
|
|
nsComponentManager::CreateInstance(NS_LOCAL_FILE_CONTRACTID,
|
2000-06-28 06:14:09 +00:00
|
|
|
nsnull,
|
|
|
|
NS_GET_IID(nsILocalFile),
|
|
|
|
(void **)getter_AddRefs(file));
|
|
|
|
|
|
|
|
if (NS_FAILED(rv) || (!file))
|
|
|
|
{
|
|
|
|
printf("create nsILocalFile failed\n");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
Banner("Creation Test");
|
|
|
|
printf("creationPath == %s\nappendPath == %s\n", creationPath, appendPath);
|
|
|
|
|
2002-04-27 05:33:09 +00:00
|
|
|
rv = file->InitWithNativePath(nsDependentCString(creationPath));
|
2000-06-28 06:14:09 +00:00
|
|
|
VerifyResult(rv);
|
|
|
|
|
|
|
|
printf("Appending %s\n", appendPath);
|
2002-04-27 05:33:09 +00:00
|
|
|
rv = file->AppendNative(nsDependentCString(appendPath));
|
2000-06-28 06:14:09 +00:00
|
|
|
VerifyResult(rv);
|
|
|
|
|
|
|
|
printf("Check For Existence\n");
|
|
|
|
|
|
|
|
PRBool exists;
|
|
|
|
file->Exists(&exists);
|
|
|
|
|
|
|
|
if (exists)
|
|
|
|
printf("Yup!\n");
|
|
|
|
else
|
|
|
|
printf("no.\n");
|
|
|
|
|
|
|
|
|
2001-12-07 23:06:51 +00:00
|
|
|
rv = file->CreateUnique(whatToCreate, perm);
|
2000-06-28 06:14:09 +00:00
|
|
|
VerifyResult(rv);
|
|
|
|
|
|
|
|
rv = file->Exists(&exists);
|
|
|
|
VerifyResult(rv);
|
|
|
|
|
|
|
|
|
|
|
|
if (!exists)
|
|
|
|
{
|
|
|
|
Failed("Did not create file system object!");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2000-01-24 21:28:28 +00:00
|
|
|
void
|
2001-11-07 06:24:10 +00:00
|
|
|
CopyTest(const char *testFile, const char *targetDir)
|
2000-01-24 21:28:28 +00:00
|
|
|
{
|
|
|
|
nsCOMPtr<nsILocalFile> file;
|
|
|
|
nsCOMPtr<nsILocalFile> dir;
|
|
|
|
|
|
|
|
printf("start copy test\n");
|
|
|
|
|
|
|
|
nsresult rv =
|
2000-09-13 23:57:52 +00:00
|
|
|
nsComponentManager::CreateInstance(NS_LOCAL_FILE_CONTRACTID, NULL,
|
2000-02-01 14:26:27 +00:00
|
|
|
NS_GET_IID(nsILocalFile),
|
2000-01-24 21:28:28 +00:00
|
|
|
(void**)getter_AddRefs(file));
|
|
|
|
|
|
|
|
if (NS_FAILED(rv) || (!file))
|
|
|
|
{
|
|
|
|
printf("create nsILocalFile failed\n");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2002-04-27 05:33:09 +00:00
|
|
|
rv = file->InitWithNativePath(nsDependentCString(testFile));
|
2000-01-24 21:28:28 +00:00
|
|
|
VerifyResult(rv);
|
|
|
|
|
2000-09-13 23:57:52 +00:00
|
|
|
rv = nsComponentManager::CreateInstance(NS_LOCAL_FILE_CONTRACTID, NULL,
|
2000-02-01 14:26:27 +00:00
|
|
|
NS_GET_IID(nsILocalFile),
|
2000-01-24 21:28:28 +00:00
|
|
|
(void**)getter_AddRefs(dir));
|
|
|
|
|
|
|
|
if (NS_FAILED(rv) || (!dir))
|
|
|
|
{
|
|
|
|
printf("create nsILocalFile failed\n");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2002-04-27 05:33:09 +00:00
|
|
|
rv = dir->InitWithNativePath(nsDependentCString(targetDir));
|
2000-01-24 21:28:28 +00:00
|
|
|
VerifyResult(rv);
|
|
|
|
|
2002-05-07 23:07:19 +00:00
|
|
|
rv = file->CopyTo(dir, nsString());
|
2000-01-24 21:28:28 +00:00
|
|
|
VerifyResult(rv);
|
|
|
|
|
|
|
|
printf("end copy test\n");
|
|
|
|
}
|
1999-10-25 22:45:12 +00:00
|
|
|
|
|
|
|
void
|
2001-11-07 06:24:10 +00:00
|
|
|
DeletionTest(const char* creationPath, const char* appendPath, PRBool recursive)
|
1999-10-25 22:45:12 +00:00
|
|
|
{
|
1999-12-03 00:44:01 +00:00
|
|
|
nsCOMPtr<nsILocalFile> file;
|
1999-11-29 15:17:57 +00:00
|
|
|
nsresult rv =
|
2002-10-17 23:41:47 +00:00
|
|
|
nsComponentManager::CreateInstance(NS_LOCAL_FILE_CONTRACTID, NULL,
|
1999-12-03 00:44:01 +00:00
|
|
|
NS_GET_IID(nsILocalFile),
|
1999-11-29 15:17:57 +00:00
|
|
|
(void**)getter_AddRefs(file));
|
1999-10-25 22:45:12 +00:00
|
|
|
|
|
|
|
if (NS_FAILED(rv) || (!file))
|
|
|
|
{
|
1999-12-03 00:44:01 +00:00
|
|
|
printf("create nsILocalFile failed\n");
|
1999-10-25 22:45:12 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
Banner("Deletion Test");
|
|
|
|
printf("creationPath == %s\nappendPath == %s\n", creationPath, appendPath);
|
|
|
|
|
2002-04-27 05:33:09 +00:00
|
|
|
rv = file->InitWithNativePath(nsDependentCString(creationPath));
|
1999-10-25 22:45:12 +00:00
|
|
|
VerifyResult(rv);
|
|
|
|
|
|
|
|
printf("Appending %s\n", appendPath);
|
2002-04-27 05:33:09 +00:00
|
|
|
rv = file->AppendNative(nsDependentCString(appendPath));
|
1999-10-25 22:45:12 +00:00
|
|
|
VerifyResult(rv);
|
|
|
|
|
|
|
|
printf("Check For Existance\n");
|
|
|
|
|
|
|
|
PRBool exists;
|
1999-11-29 15:17:57 +00:00
|
|
|
file->Exists(&exists);
|
1999-10-25 22:45:12 +00:00
|
|
|
|
|
|
|
if (exists)
|
|
|
|
printf("Yup!\n");
|
|
|
|
else
|
|
|
|
printf("no.\n");
|
|
|
|
|
2001-07-24 18:38:25 +00:00
|
|
|
rv = file->Remove(recursive);
|
1999-10-25 22:45:12 +00:00
|
|
|
VerifyResult(rv);
|
|
|
|
|
1999-11-29 15:17:57 +00:00
|
|
|
rv = file->Exists(&exists);
|
1999-10-25 22:45:12 +00:00
|
|
|
VerifyResult(rv);
|
|
|
|
|
|
|
|
if (exists)
|
|
|
|
{
|
|
|
|
Failed("Did not create delete system object!");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2002-06-04 18:47:37 +00:00
|
|
|
void
|
|
|
|
MoveTest(const char *testFile, const char *targetDir)
|
|
|
|
{
|
|
|
|
Banner("Move Test");
|
|
|
|
|
|
|
|
printf("start move test\n");
|
|
|
|
|
|
|
|
nsresult rv;
|
|
|
|
nsCOMPtr<nsILocalFile> file(do_CreateInstance(NS_LOCAL_FILE_CONTRACTID));
|
|
|
|
|
|
|
|
if (!file)
|
|
|
|
{
|
|
|
|
printf("create nsILocalFile failed\n");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
rv = file->InitWithNativePath(nsDependentCString(testFile));
|
|
|
|
VerifyResult(rv);
|
|
|
|
|
|
|
|
nsCOMPtr<nsILocalFile> dir(do_CreateInstance(NS_LOCAL_FILE_CONTRACTID));
|
|
|
|
|
|
|
|
if (!dir)
|
|
|
|
{
|
|
|
|
printf("create nsILocalFile failed\n");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
rv = dir->InitWithNativePath(nsDependentCString(targetDir));
|
|
|
|
VerifyResult(rv);
|
|
|
|
|
|
|
|
rv = file->MoveToNative(dir, NS_LITERAL_CSTRING("newtemp"));
|
|
|
|
VerifyResult(rv);
|
|
|
|
if (NS_FAILED(rv))
|
|
|
|
{
|
|
|
|
printf("MoveToNative() test Failed.\n");
|
|
|
|
}
|
|
|
|
printf("end move test\n");
|
|
|
|
}
|
|
|
|
|
1999-10-25 22:45:12 +00:00
|
|
|
|
|
|
|
|
1999-11-29 15:17:57 +00:00
|
|
|
int main(void)
|
1999-10-25 22:45:12 +00:00
|
|
|
{
|
2002-01-29 21:22:13 +00:00
|
|
|
nsCOMPtr<nsIServiceManager> servMan;
|
|
|
|
NS_InitXPCOM2(getter_AddRefs(servMan), nsnull, nsnull);
|
|
|
|
nsCOMPtr<nsIComponentRegistrar> registrar = do_QueryInterface(servMan);
|
|
|
|
NS_ASSERTION(registrar, "Null nsIComponentRegistrar");
|
|
|
|
registrar->AutoRegister(nsnull);
|
|
|
|
|
2003-04-02 22:45:08 +00:00
|
|
|
#if defined(XP_WIN) || defined(XP_OS2)
|
1999-12-03 00:44:01 +00:00
|
|
|
InitTest("c:\\temp\\", "sub1/sub2/");
|
2000-06-28 06:14:09 +00:00
|
|
|
InitTest("d:\\temp\\", "sub1\\sub2\\");
|
1999-10-25 22:45:12 +00:00
|
|
|
|
1999-12-03 00:44:01 +00:00
|
|
|
CreationTest("c:\\temp\\", "file.txt", nsIFile::NORMAL_FILE_TYPE, 0644);
|
|
|
|
DeletionTest("c:\\temp\\", "file.txt", PR_FALSE);
|
1999-10-25 22:45:12 +00:00
|
|
|
|
2002-06-04 18:47:37 +00:00
|
|
|
MoveTest("c:\\newtemp\\", "d:");
|
|
|
|
|
2000-06-28 06:14:09 +00:00
|
|
|
CreationTest("c:\\temp\\", "mumble\\a\\b\\c\\d\\e\\f\\g\\h\\i\\j\\k\\", nsIFile::DIRECTORY_TYPE, 0644);
|
1999-12-03 00:44:01 +00:00
|
|
|
DeletionTest("c:\\temp\\", "mumble", PR_TRUE);
|
1999-10-25 22:45:12 +00:00
|
|
|
|
2000-06-28 06:14:09 +00:00
|
|
|
CreateUniqueTest("c:\\temp\\", "foo", nsIFile::NORMAL_FILE_TYPE, 0644);
|
|
|
|
CreateUniqueTest("c:\\temp\\", "foo", nsIFile::NORMAL_FILE_TYPE, 0644);
|
|
|
|
CreateUniqueTest("c:\\temp\\", "bar.xx", nsIFile::DIRECTORY_TYPE, 0644);
|
|
|
|
CreateUniqueTest("c:\\temp\\", "bar.xx", nsIFile::DIRECTORY_TYPE, 0644);
|
|
|
|
DeletionTest("c:\\temp\\", "foo", PR_TRUE);
|
|
|
|
DeletionTest("c:\\temp\\", "foo-1", PR_TRUE);
|
|
|
|
DeletionTest("c:\\temp\\", "bar.xx", PR_TRUE);
|
|
|
|
DeletionTest("c:\\temp\\", "bar-1.xx", PR_TRUE);
|
|
|
|
|
1999-11-29 15:17:57 +00:00
|
|
|
#else
|
|
|
|
#ifdef XP_UNIX
|
1999-12-03 00:44:01 +00:00
|
|
|
InitTest("/tmp/", "sub1/sub2/");
|
1999-11-29 15:17:57 +00:00
|
|
|
|
1999-12-03 00:44:01 +00:00
|
|
|
CreationTest("/tmp", "file.txt", nsIFile::NORMAL_FILE_TYPE, 0644);
|
|
|
|
DeletionTest("/tmp/", "file.txt", PR_FALSE);
|
1999-11-29 15:17:57 +00:00
|
|
|
|
1999-12-03 00:44:01 +00:00
|
|
|
CreationTest("/tmp", "mumble/a/b/c/d/e/f/g/h/i/j/k/", nsIFile::DIRECTORY_TYPE, 0644);
|
|
|
|
DeletionTest("/tmp", "mumble", PR_TRUE);
|
2000-01-24 21:28:28 +00:00
|
|
|
CopyTest("/tmp/test.txt", "/tmp/foo");
|
|
|
|
|
1999-11-29 15:17:57 +00:00
|
|
|
#endif /* XP_UNIX */
|
2003-04-02 22:45:08 +00:00
|
|
|
#endif /* XP_WIN || XP_OS2 */
|
2000-03-29 03:58:50 +00:00
|
|
|
return 0;
|
1999-10-25 22:45:12 +00:00
|
|
|
}
|