1999-06-15 09:22:25 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Netscape Public License
|
|
|
|
* Version 1.0 (the "NPL"); you may not use this file except in
|
|
|
|
* compliance with the NPL. You may obtain a copy of the NPL at
|
|
|
|
* http://www.mozilla.org/NPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* NPL.
|
|
|
|
*
|
|
|
|
* The Initial Developer of this code under the NPL is Netscape
|
|
|
|
* Communications Corporation. Portions created by Netscape are
|
|
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
|
|
|
* Reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "nsIServiceManager.h"
|
|
|
|
#include "nsIInputStream.h"
|
|
|
|
#include "nsIOutputStream.h"
|
|
|
|
#include "nsIThread.h"
|
|
|
|
#include "nsISupportsArray.h"
|
|
|
|
#include "prinrval.h"
|
|
|
|
#include "nsIFileStream.h"
|
|
|
|
#include "nsFileSpec.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
|
1999-06-16 08:15:29 +04:00
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include <math.h>
|
|
|
|
#include "prprf.h"
|
|
|
|
#include "nsAutoLock.h"
|
|
|
|
|
|
|
|
class nsTimeSampler {
|
|
|
|
public:
|
|
|
|
nsTimeSampler();
|
|
|
|
void Reset();
|
|
|
|
void StartTime();
|
|
|
|
void EndTime();
|
|
|
|
void AddTime(PRIntervalTime time);
|
|
|
|
PRIntervalTime LastInterval() { return mLastInterval; }
|
|
|
|
char* PrintStats();
|
|
|
|
protected:
|
|
|
|
PRIntervalTime mStartTime;
|
|
|
|
double mSquares;
|
|
|
|
double mTotalTime;
|
|
|
|
PRUint32 mCount;
|
|
|
|
PRIntervalTime mLastInterval;
|
|
|
|
};
|
|
|
|
|
|
|
|
nsTimeSampler::nsTimeSampler()
|
|
|
|
{
|
|
|
|
Reset();
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
nsTimeSampler::Reset()
|
|
|
|
{
|
|
|
|
mStartTime = 0;
|
|
|
|
mSquares = 0;
|
|
|
|
mTotalTime = 0;
|
|
|
|
mCount = 0;
|
|
|
|
mLastInterval = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
nsTimeSampler::StartTime()
|
|
|
|
{
|
|
|
|
mStartTime = PR_IntervalNow();
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
nsTimeSampler::EndTime()
|
|
|
|
{
|
|
|
|
NS_ASSERTION(mStartTime != 0, "Forgot to call StartTime");
|
|
|
|
PRIntervalTime endTime = PR_IntervalNow();
|
|
|
|
mLastInterval = endTime - mStartTime;
|
|
|
|
AddTime(mLastInterval);
|
|
|
|
mStartTime = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
nsTimeSampler::AddTime(PRIntervalTime time)
|
|
|
|
{
|
|
|
|
nsAutoCMonitor mon(this);
|
|
|
|
mTotalTime += time;
|
|
|
|
mSquares += (double)time * (double)time;
|
|
|
|
mCount++;
|
|
|
|
}
|
|
|
|
|
|
|
|
char*
|
|
|
|
nsTimeSampler::PrintStats()
|
|
|
|
{
|
|
|
|
double mean = mTotalTime / mCount;
|
|
|
|
double variance = fabs(mSquares / mCount - mean * mean);
|
|
|
|
double stddev = sqrt(variance);
|
|
|
|
PRUint32 imean = (PRUint32)mean;
|
|
|
|
PRUint32 istddev = (PRUint32)stddev;
|
|
|
|
return PR_smprintf("%d +/- %d ms",
|
|
|
|
PR_IntervalToMilliseconds(imean),
|
|
|
|
PR_IntervalToMilliseconds(istddev));
|
|
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
nsTimeSampler gTimeSampler;
|
1999-06-15 09:22:25 +04:00
|
|
|
|
|
|
|
typedef nsresult (*CreateFun)(nsIRunnable* *result,
|
|
|
|
const char* inPath,
|
|
|
|
const char* outPath,
|
|
|
|
PRUint32 bufferSize);
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
nsresult
|
|
|
|
Copy(nsIInputStream* inStr, nsIOutputStream* outStr,
|
|
|
|
char* buf, PRUint32 bufSize, PRUint32 *copyCount)
|
|
|
|
{
|
|
|
|
nsresult rv;
|
|
|
|
while (PR_TRUE) {
|
|
|
|
PRUint32 count;
|
|
|
|
rv = inStr->Read(buf, bufSize, &count);
|
|
|
|
if (rv == NS_BASE_STREAM_EOF) break;
|
|
|
|
if (NS_FAILED(rv)) return rv;
|
|
|
|
|
|
|
|
PRUint32 writeCount;
|
|
|
|
rv = outStr->Write(buf, count, &writeCount);
|
|
|
|
if (NS_FAILED(rv)) return rv;
|
|
|
|
NS_ASSERTION(writeCount == count, "didn't write all the data");
|
|
|
|
*copyCount += writeCount;
|
|
|
|
}
|
|
|
|
rv = outStr->Flush();
|
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
class FileSpecWorker : public nsIRunnable {
|
|
|
|
public:
|
|
|
|
|
|
|
|
NS_IMETHOD Run() {
|
|
|
|
nsresult rv;
|
|
|
|
|
1999-06-16 08:15:29 +04:00
|
|
|
PRIntervalTime startTime = PR_IntervalNow();
|
|
|
|
PRIntervalTime endTime;
|
1999-06-15 09:22:25 +04:00
|
|
|
|
|
|
|
nsIInputStream* inStr = nsnull;
|
|
|
|
nsIOutputStream* outStr = nsnull;
|
|
|
|
nsISupports* str = nsnull;
|
|
|
|
|
|
|
|
PRUint32 copyCount = 0;
|
|
|
|
nsFileSpec inSpec(mInPath);
|
|
|
|
nsFileSpec outSpec(mOutPath);
|
|
|
|
|
|
|
|
// Open the input stream:
|
|
|
|
rv = NS_NewTypicalInputFileStream(&str, inSpec);
|
|
|
|
if (NS_FAILED(rv)) goto done;
|
1999-07-01 00:20:17 +04:00
|
|
|
rv = str->QueryInterface(nsCOMTypeInfo<nsIInputStream>::GetIID(), (void**)&inStr);
|
1999-06-15 09:22:25 +04:00
|
|
|
NS_RELEASE(str);
|
|
|
|
if (NS_FAILED(rv)) goto done;
|
|
|
|
|
|
|
|
// Open the output stream:
|
|
|
|
rv = NS_NewTypicalOutputFileStream(&str, outSpec);
|
|
|
|
if (NS_FAILED(rv)) goto done;
|
1999-07-01 00:20:17 +04:00
|
|
|
rv = str->QueryInterface(nsCOMTypeInfo<nsIOutputStream>::GetIID(), (void**)&outStr);
|
1999-06-15 09:22:25 +04:00
|
|
|
NS_RELEASE(str);
|
|
|
|
if (NS_FAILED(rv)) goto done;
|
|
|
|
|
|
|
|
// Copy from one to the other
|
|
|
|
rv = Copy(inStr, outStr, mBuffer, mBufferSize, ©Count);
|
|
|
|
if (NS_FAILED(rv)) goto done;
|
1999-06-16 08:15:29 +04:00
|
|
|
|
1999-06-15 09:22:25 +04:00
|
|
|
endTime = PR_IntervalNow();
|
1999-06-16 08:15:29 +04:00
|
|
|
gTimeSampler.AddTime(endTime - startTime);
|
|
|
|
|
1999-06-15 09:22:25 +04:00
|
|
|
done:
|
|
|
|
NS_IF_RELEASE(outStr);
|
|
|
|
NS_IF_RELEASE(inStr);
|
|
|
|
NS_IF_RELEASE(str);
|
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
|
|
|
|
FileSpecWorker()
|
|
|
|
: mInPath(nsnull), mOutPath(nsnull), mBuffer(nsnull),
|
|
|
|
mBufferSize(0)
|
|
|
|
{
|
|
|
|
NS_INIT_REFCNT();
|
|
|
|
}
|
|
|
|
|
|
|
|
nsresult Init(const char* inPath, const char* outPath,
|
|
|
|
PRUint32 bufferSize)
|
|
|
|
{
|
|
|
|
mInPath = nsCRT::strdup(inPath);
|
|
|
|
mOutPath = nsCRT::strdup(outPath);
|
|
|
|
mBuffer = new char[bufferSize];
|
|
|
|
mBufferSize = bufferSize;
|
|
|
|
return (mInPath && mOutPath && mBuffer)
|
|
|
|
? NS_OK : NS_ERROR_OUT_OF_MEMORY;
|
|
|
|
}
|
|
|
|
|
|
|
|
static nsresult Create(nsIRunnable* *result,
|
|
|
|
const char* inPath,
|
|
|
|
const char* outPath,
|
|
|
|
PRUint32 bufferSize)
|
|
|
|
{
|
|
|
|
FileSpecWorker* worker = new FileSpecWorker();
|
|
|
|
if (worker == nsnull)
|
|
|
|
return NS_ERROR_OUT_OF_MEMORY;
|
|
|
|
NS_ADDREF(worker);
|
|
|
|
|
|
|
|
nsresult rv = worker->Init(inPath, outPath, bufferSize);
|
|
|
|
if (NS_FAILED(rv)) {
|
|
|
|
NS_RELEASE(worker);
|
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
*result = worker;
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual ~FileSpecWorker() {
|
|
|
|
nsCRT::free(mInPath);
|
|
|
|
nsCRT::free(mOutPath);
|
|
|
|
delete[] mBuffer;
|
|
|
|
}
|
|
|
|
|
|
|
|
protected:
|
|
|
|
char* mInPath;
|
|
|
|
char* mOutPath;
|
|
|
|
char* mBuffer;
|
|
|
|
PRUint32 mBufferSize;
|
|
|
|
};
|
|
|
|
|
1999-07-01 00:20:17 +04:00
|
|
|
NS_IMPL_ISUPPORTS(FileSpecWorker, nsCOMTypeInfo<nsIRunnable>::GetIID());
|
1999-06-15 09:22:25 +04:00
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "nsIIOService.h"
|
|
|
|
#include "nsIFileChannel.h"
|
|
|
|
#include "nsIFileProtocolHandler.h"
|
|
|
|
|
|
|
|
static NS_DEFINE_CID(kIOServiceCID, NS_IOSERVICE_CID);
|
|
|
|
|
|
|
|
class FileChannelWorker : public nsIRunnable {
|
|
|
|
public:
|
|
|
|
|
|
|
|
NS_IMETHOD Run() {
|
|
|
|
nsresult rv;
|
|
|
|
|
|
|
|
NS_WITH_SERVICE(nsIIOService, ioserv, kIOServiceCID, &rv);
|
|
|
|
if (NS_FAILED(rv)) return rv;
|
|
|
|
|
1999-06-16 08:15:29 +04:00
|
|
|
PRIntervalTime startTime = PR_IntervalNow();
|
|
|
|
PRIntervalTime endTime;
|
1999-06-15 09:22:25 +04:00
|
|
|
|
|
|
|
PRUint32 copyCount = 0;
|
|
|
|
nsIInputStream* inStr = nsnull;
|
|
|
|
nsIOutputStream* outStr = nsnull;
|
|
|
|
nsIFileChannel* inCh = nsnull;
|
|
|
|
nsIFileChannel* outCh = nsnull;
|
|
|
|
|
1999-06-16 08:15:29 +04:00
|
|
|
rv = ioserv->NewChannelFromNativePath(mInPath, &inCh);
|
1999-06-15 09:22:25 +04:00
|
|
|
if (NS_FAILED(rv)) goto done;
|
|
|
|
|
|
|
|
rv = inCh->OpenInputStream(0, -1, &inStr);
|
|
|
|
if (NS_FAILED(rv)) goto done;
|
|
|
|
|
1999-06-16 08:15:29 +04:00
|
|
|
rv = ioserv->NewChannelFromNativePath(mOutPath, &outCh);
|
1999-06-15 09:22:25 +04:00
|
|
|
if (NS_FAILED(rv)) goto done;
|
|
|
|
|
|
|
|
rv = outCh->OpenOutputStream(0, &outStr);
|
|
|
|
if (NS_FAILED(rv)) goto done;
|
|
|
|
|
|
|
|
// Copy from one to the other
|
|
|
|
rv = Copy(inStr, outStr, mBuffer, mBufferSize, ©Count);
|
|
|
|
if (NS_FAILED(rv)) goto done;
|
|
|
|
|
|
|
|
endTime = PR_IntervalNow();
|
1999-06-16 08:15:29 +04:00
|
|
|
gTimeSampler.AddTime(endTime - startTime);
|
|
|
|
|
1999-06-15 09:22:25 +04:00
|
|
|
done:
|
|
|
|
NS_RELEASE(inStr);
|
|
|
|
NS_RELEASE(inCh);
|
|
|
|
NS_RELEASE(outStr);
|
|
|
|
NS_RELEASE(outCh);
|
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
|
|
|
|
FileChannelWorker()
|
|
|
|
: mInPath(nsnull), mOutPath(nsnull), mBuffer(nsnull),
|
|
|
|
mBufferSize(0)
|
|
|
|
{
|
|
|
|
NS_INIT_REFCNT();
|
|
|
|
}
|
|
|
|
|
|
|
|
nsresult Init(const char* inPath, const char* outPath,
|
|
|
|
PRUint32 bufferSize)
|
|
|
|
{
|
|
|
|
mInPath = nsCRT::strdup(inPath);
|
|
|
|
mOutPath = nsCRT::strdup(outPath);
|
|
|
|
mBuffer = new char[bufferSize];
|
|
|
|
mBufferSize = bufferSize;
|
|
|
|
return (mInPath && mOutPath && mBuffer)
|
|
|
|
? NS_OK : NS_ERROR_OUT_OF_MEMORY;
|
|
|
|
}
|
|
|
|
|
|
|
|
static nsresult Create(nsIRunnable* *result,
|
|
|
|
const char* inPath,
|
|
|
|
const char* outPath,
|
|
|
|
PRUint32 bufferSize)
|
|
|
|
{
|
|
|
|
FileChannelWorker* worker = new FileChannelWorker();
|
|
|
|
if (worker == nsnull)
|
|
|
|
return NS_ERROR_OUT_OF_MEMORY;
|
|
|
|
NS_ADDREF(worker);
|
|
|
|
|
|
|
|
nsresult rv = worker->Init(inPath, outPath, bufferSize);
|
|
|
|
if (NS_FAILED(rv)) {
|
|
|
|
NS_RELEASE(worker);
|
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
*result = worker;
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual ~FileChannelWorker() {
|
|
|
|
nsCRT::free(mInPath);
|
|
|
|
nsCRT::free(mOutPath);
|
|
|
|
delete[] mBuffer;
|
|
|
|
}
|
|
|
|
|
|
|
|
protected:
|
|
|
|
char* mInPath;
|
|
|
|
char* mOutPath;
|
|
|
|
char* mBuffer;
|
|
|
|
PRUint32 mBufferSize;
|
|
|
|
};
|
|
|
|
|
1999-07-01 00:20:17 +04:00
|
|
|
NS_IMPL_ISUPPORTS(FileChannelWorker, nsCOMTypeInfo<nsIRunnable>::GetIID());
|
1999-06-15 09:22:25 +04:00
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
void
|
|
|
|
Test(CreateFun create, PRUint32 count,
|
|
|
|
const char* inDir, const char* outDir, PRUint32 bufSize)
|
|
|
|
{
|
|
|
|
nsresult rv;
|
|
|
|
PRUint32 i;
|
|
|
|
|
1999-06-16 08:15:29 +04:00
|
|
|
printf("###########\nTest: from %s to %s, bufSize = %d\n",
|
|
|
|
inDir, outDir, bufSize);
|
|
|
|
gTimeSampler.Reset();
|
|
|
|
nsTimeSampler testTime;
|
|
|
|
testTime.StartTime();
|
1999-06-15 09:22:25 +04:00
|
|
|
|
|
|
|
nsISupportsArray* threads;
|
|
|
|
rv = NS_NewISupportsArray(&threads);
|
|
|
|
NS_ASSERTION(NS_SUCCEEDED(rv), "NS_NewISupportsArray failed");
|
|
|
|
|
|
|
|
nsFileSpec inDirSpec(inDir);
|
1999-07-27 02:09:42 +04:00
|
|
|
nsDirectoryIterator iter(inDirSpec, PR_TRUE);
|
1999-06-15 09:22:25 +04:00
|
|
|
for (i = 0; i < count && iter.Exists(); i++, iter++) {
|
|
|
|
nsIThread* thread;
|
|
|
|
nsIRunnable* worker;
|
|
|
|
|
|
|
|
nsFileSpec& inSpec = iter.Spec();
|
|
|
|
|
|
|
|
nsFileSpec outSpec(outDir);
|
|
|
|
outSpec += inSpec.GetLeafName();
|
|
|
|
if (outSpec.Exists()) {
|
|
|
|
outSpec.Delete(PR_FALSE);
|
|
|
|
}
|
|
|
|
|
|
|
|
rv = create(&worker,
|
|
|
|
inSpec.GetNativePathCString(),
|
|
|
|
outSpec.GetNativePathCString(),
|
|
|
|
bufSize);
|
|
|
|
if (NS_FAILED(rv)) goto done;
|
|
|
|
|
|
|
|
rv = NS_NewThread(&thread, worker);
|
|
|
|
NS_RELEASE(worker);
|
|
|
|
if (NS_FAILED(rv)) goto done;
|
|
|
|
|
|
|
|
PRBool inserted = threads->InsertElementAt(thread, i);
|
|
|
|
NS_ASSERTION(inserted, "not inserted");
|
|
|
|
}
|
|
|
|
|
|
|
|
PRUint32 j;
|
|
|
|
for (j = 0; j < i; j++) {
|
|
|
|
nsIThread* thread = (nsIThread*)threads->ElementAt(j);
|
|
|
|
if (NS_FAILED(rv)) goto done;
|
|
|
|
thread->Join();
|
|
|
|
}
|
|
|
|
|
|
|
|
done:
|
|
|
|
NS_RELEASE(threads);
|
|
|
|
NS_ASSERTION(rv == NS_OK, "failed");
|
|
|
|
|
1999-06-16 08:15:29 +04:00
|
|
|
testTime.EndTime();
|
|
|
|
char* testStats = testTime.PrintStats();
|
|
|
|
char* workerStats = gTimeSampler.PrintStats();
|
|
|
|
printf(" threads = %d\n work time = %s,\n test time = %s\n",
|
|
|
|
i, workerStats, testStats);
|
|
|
|
PR_smprintf_free(workerStats);
|
|
|
|
PR_smprintf_free(testStats);
|
1999-06-15 09:22:25 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1999-06-22 22:24:02 +04:00
|
|
|
nsresult NS_AutoregisterComponents()
|
|
|
|
{
|
|
|
|
nsresult rv = nsComponentManager::AutoRegister(nsIComponentManager::NS_Startup, NULL /* default */);
|
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
|
1999-06-15 09:22:25 +04:00
|
|
|
int
|
|
|
|
main(int argc, char* argv[])
|
|
|
|
{
|
|
|
|
nsresult rv;
|
|
|
|
|
|
|
|
if (argc < 2) {
|
|
|
|
printf("usage: %s <in-dir> <out-dir>\n", argv[0]);
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
char* inDir = argv[1];
|
|
|
|
char* outDir = argv[2];
|
|
|
|
|
1999-06-22 22:24:02 +04:00
|
|
|
rv = NS_AutoregisterComponents();
|
1999-06-15 09:22:25 +04:00
|
|
|
if (NS_FAILED(rv)) return rv;
|
|
|
|
|
1999-06-16 08:15:29 +04:00
|
|
|
CreateFun create = FileChannelWorker::Create;
|
1999-06-15 09:22:25 +04:00
|
|
|
Test(create, 1, inDir, outDir, 16 * 1024);
|
1999-06-16 08:15:29 +04:00
|
|
|
#if 1
|
|
|
|
printf("FileChannelWorker *****************************\n");
|
|
|
|
Test(create, 20, inDir, outDir, 16 * 1024);
|
|
|
|
Test(create, 20, inDir, outDir, 16 * 1024);
|
|
|
|
Test(create, 20, inDir, outDir, 16 * 1024);
|
|
|
|
Test(create, 20, inDir, outDir, 16 * 1024);
|
|
|
|
Test(create, 20, inDir, outDir, 16 * 1024);
|
|
|
|
Test(create, 20, inDir, outDir, 16 * 1024);
|
|
|
|
Test(create, 20, inDir, outDir, 16 * 1024);
|
|
|
|
Test(create, 20, inDir, outDir, 16 * 1024);
|
|
|
|
Test(create, 20, inDir, outDir, 16 * 1024);
|
1999-06-15 09:22:25 +04:00
|
|
|
#endif
|
|
|
|
create = FileSpecWorker::Create;
|
1999-06-16 08:15:29 +04:00
|
|
|
printf("FileSpecWorker ********************************\n");
|
|
|
|
#if 1
|
|
|
|
Test(create, 20, inDir, outDir, 16 * 1024);
|
|
|
|
Test(create, 20, inDir, outDir, 16 * 1024);
|
|
|
|
Test(create, 20, inDir, outDir, 16 * 1024);
|
|
|
|
Test(create, 20, inDir, outDir, 16 * 1024);
|
|
|
|
Test(create, 20, inDir, outDir, 16 * 1024);
|
|
|
|
Test(create, 20, inDir, outDir, 16 * 1024);
|
|
|
|
Test(create, 20, inDir, outDir, 16 * 1024);
|
|
|
|
Test(create, 20, inDir, outDir, 16 * 1024);
|
|
|
|
Test(create, 20, inDir, outDir, 16 * 1024);
|
1999-06-15 09:22:25 +04:00
|
|
|
#endif
|
1999-06-16 08:15:29 +04:00
|
|
|
#if 1
|
|
|
|
Test(create, 20, inDir, outDir, 4 * 1024);
|
|
|
|
Test(create, 20, inDir, outDir, 4 * 1024);
|
|
|
|
Test(create, 20, inDir, outDir, 4 * 1024);
|
|
|
|
Test(create, 20, inDir, outDir, 4 * 1024);
|
|
|
|
Test(create, 20, inDir, outDir, 4 * 1024);
|
|
|
|
Test(create, 20, inDir, outDir, 4 * 1024);
|
|
|
|
Test(create, 20, inDir, outDir, 4 * 1024);
|
|
|
|
Test(create, 20, inDir, outDir, 4 * 1024);
|
|
|
|
Test(create, 20, inDir, outDir, 4 * 1024);
|
1999-06-15 09:22:25 +04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|