mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-22 12:55:34 +00:00
Merge branch 'development' of https://github.com/TorqueGameEngines/Torque3D into alpha41/cmake_adjustments
This commit is contained in:
commit
2866b3afd6
10 changed files with 47 additions and 19 deletions
|
|
@ -68,13 +68,17 @@ TEST(File, TouchAndTime)
|
|||
|
||||
// Touch a file and note its last-modified.
|
||||
dFileTouch("testTouch.file");
|
||||
|
||||
// Sleep for a tick
|
||||
Platform::sleep(32);
|
||||
|
||||
EXPECT_TRUE(Platform::isFile("testTouch.file"))
|
||||
<< "We just touched this file - it should exist.";
|
||||
EXPECT_TRUE(Platform::getFileTimes("testTouch.file", &create[0], &modify[0]))
|
||||
<< "Failed to get filetimes for a file we just created.";
|
||||
|
||||
// Sleep for a tick
|
||||
Platform::sleep(10);
|
||||
Platform::sleep(32);
|
||||
|
||||
// Touch it again, and compare the last-modifieds.
|
||||
EXPECT_TRUE(Platform::isFile("testTouch.file"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue