mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-29 18:20:44 +00:00
Added an assertion to test if get_fileitem_from_path returns the same pointers for the same path.
This commit is contained in:
parent
bd851fdeca
commit
1ab947b4f1
@ -66,13 +66,17 @@ int main(int argc, char *argv[])
|
||||
#ifdef ALLEGRO_WINDOWS
|
||||
trace("*** Testing specific directories retrieval...\n");
|
||||
{
|
||||
FileItem *c_drive;
|
||||
FileItem *c_drive, *c_drive2;
|
||||
FileItem *my_pc;
|
||||
|
||||
trace("*** Getting 'C:\\' using 'get_fileitem_from_path'...\n");
|
||||
c_drive = get_fileitem_from_path("C:\\");
|
||||
assert(c_drive != NULL);
|
||||
|
||||
trace("*** Getting 'C:\\' again\n");
|
||||
c_drive2 = get_fileitem_from_path("C:\\");
|
||||
assert(c_drive == c_drive2);
|
||||
|
||||
trace("*** Displaying 'C:\\'...\n");
|
||||
display_fileitem(c_drive, 0, 0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user