[*] Fix IO regressions
This commit is contained in:
parent
97f288a750
commit
880831b2fd
@ -1 +1 @@
|
|||||||
Subproject commit ab6f00f0941317ea65781733b6c1c89d639b0c7e
|
Subproject commit 5d12f1a203ff731b685c0163ad62671857b34f4d
|
@ -43,20 +43,19 @@ Test 3)
|
|||||||
*/
|
*/
|
||||||
TEST(FS, WriteRead)
|
TEST(FS, WriteRead)
|
||||||
{
|
{
|
||||||
AuByteBuffer rngbuffer(32);
|
AuByteBuffer rngbuffer(32 * 1024);
|
||||||
AuByteBuffer inputblob;
|
AuByteBuffer inputblob;
|
||||||
AuRng::RngFillRange(rngbuffer);
|
AuRng::RngFillBuffer(rngbuffer);
|
||||||
|
|
||||||
for (int i = 0; i < 1000; i++)
|
for (int i = 0; i < 1000; i++)
|
||||||
{
|
{
|
||||||
inputblob.writePtr = inputblob.base;
|
inputblob.writePtr = inputblob.readPtr = inputblob.base;
|
||||||
|
|
||||||
// Write and read back the RNG blob from a read/writable CWD
|
// Write and read back the RNG blob from a read/writable CWD
|
||||||
ASSERT_TRUE(AuIOFS::WriteFile("./test_rng_blob", rngbuffer));
|
ASSERT_TRUE(AuIOFS::WriteFile("./test_rng_blob", rngbuffer));
|
||||||
ASSERT_TRUE(AuIOFS::ReadFile("./test_rng_blob", inputblob));
|
ASSERT_TRUE(AuIOFS::ReadFile("./test_rng_blob", inputblob));
|
||||||
ASSERT_EQ(inputblob, rngbuffer);
|
ASSERT_EQ(inputblob, rngbuffer);
|
||||||
|
|
||||||
inputblob.writePtr = inputblob.base;
|
inputblob.writePtr = inputblob.readPtr = inputblob.base;
|
||||||
|
|
||||||
// Write and read back the RNG blob from a user specific application directory
|
// Write and read back the RNG blob from a user specific application directory
|
||||||
// Defer to brand: Aurora::RuntimeStartInfo#fio.defaultBrand
|
// Defer to brand: Aurora::RuntimeStartInfo#fio.defaultBrand
|
||||||
@ -70,7 +69,7 @@ TEST(FS, WriteCopyRead)
|
|||||||
{
|
{
|
||||||
AuByteBuffer rngbuffer(32);
|
AuByteBuffer rngbuffer(32);
|
||||||
AuByteBuffer inputblob;
|
AuByteBuffer inputblob;
|
||||||
AuRng::RngFillRange(rngbuffer);
|
AuRng::RngFillBuffer(rngbuffer);
|
||||||
|
|
||||||
ASSERT_TRUE(AuIOFS::WriteFile("./test_rng_blob_1", rngbuffer));
|
ASSERT_TRUE(AuIOFS::WriteFile("./test_rng_blob_1", rngbuffer));
|
||||||
|
|
||||||
@ -85,7 +84,7 @@ TEST(FS, WriteMove)
|
|||||||
{
|
{
|
||||||
AuByteBuffer rngbuffer(32);
|
AuByteBuffer rngbuffer(32);
|
||||||
AuByteBuffer inputblob;
|
AuByteBuffer inputblob;
|
||||||
AuRng::RngFillRange(rngbuffer);
|
AuRng::RngFillBuffer(rngbuffer);
|
||||||
|
|
||||||
ASSERT_TRUE(AuIOFS::WriteFile("./test_rng_blob_1", rngbuffer));
|
ASSERT_TRUE(AuIOFS::WriteFile("./test_rng_blob_1", rngbuffer));
|
||||||
|
|
||||||
@ -423,8 +422,8 @@ void RunTests()
|
|||||||
{
|
{
|
||||||
Aurora::RuntimeStartInfo info;
|
Aurora::RuntimeStartInfo info;
|
||||||
info.console.fio.bEnableLogging = false;
|
info.console.fio.bEnableLogging = false;
|
||||||
info.fio.defaultBrand = "AuSdkBrand";
|
info.fio.optDefaultBrand = "AuSdkBrand";
|
||||||
info.bFIODisableBatching = false;
|
info.linuxConfig.bFIODisableBatching = false;
|
||||||
Aurora::RuntimeStart(info);
|
Aurora::RuntimeStart(info);
|
||||||
|
|
||||||
PrintSystemRoot();
|
PrintSystemRoot();
|
||||||
|
Loading…
Reference in New Issue
Block a user