diff options
author | Lutz Mueller <lutz@users.sourceforge.net> | 2001-08-19 20:57:12 +0000 |
---|---|---|
committer | Lutz Mueller <lutz@users.sourceforge.net> | 2001-08-19 20:57:12 +0000 |
commit | 70209f7e828ee8da1a4e526a41fd0f6fc920574f (patch) | |
tree | ad2a1b137d79adc74c7d9db196cb386aa80b4be1 /tests/test-filesys.c | |
parent | 2904bec8814d0121555af6f71abd5d6c5d9cf246 (diff) | |
download | libgphoto2-70209f7e828ee8da1a4e526a41fd0f6fc920574f.tar.gz |
2001-08-19 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* tests/test-filesys.c: Even more tests
* libgphoto2/filesys.c: Fix remaining bugs. It should work now...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2015 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'tests/test-filesys.c')
-rw-r--r-- | tests/test-filesys.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test-filesys.c b/tests/test-filesys.c index beaf39c40..d25050642 100644 --- a/tests/test-filesys.c +++ b/tests/test-filesys.c @@ -16,6 +16,21 @@ main (int argc, char **argv) printf ("*** Creating file system...\n"); fs = gp_filesystem_new (); + printf ("*** Adding a file...\n"); + CHECK (gp_filesystem_append (fs, "/", "my.file")); + + gp_filesystem_dump (fs); + + printf ("*** Removing this file...\n"); + CHECK (gp_filesystem_delete (fs, "/", "my.file")); + + gp_filesystem_dump (fs); + + printf ("*** Removing /...\n"); + CHECK (gp_filesystem_delete (fs, "/", NULL)); + + gp_filesystem_dump (fs); + printf ("*** Adding some files...\n"); CHECK (gp_filesystem_append (fs, "/", NULL)); CHECK (gp_filesystem_append (fs, "/whatever", NULL)); |