[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r8634 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r8634 - gnunet/src/util |
Date: |
Tue, 7 Jul 2009 14:41:20 -0600 |
Author: grothoff
Date: 2009-07-07 14:41:19 -0600 (Tue, 07 Jul 2009)
New Revision: 8634
Modified:
gnunet/src/util/test_disk.c
gnunet/src/util/test_os_load.c
Log:
fixing testcases to match new api
Modified: gnunet/src/util/test_disk.c
===================================================================
--- gnunet/src/util/test_disk.c 2009-07-07 20:05:55 UTC (rev 8633)
+++ gnunet/src/util/test_disk.c 2009-07-07 20:41:19 UTC (rev 8634)
@@ -1,6 +1,6 @@
/*
This file is part of GNUnet.
- (C) 2001, 2002, 2003, 2005, 2006 Christian Grothoff (and other
contributing authors)
+ (C) 2001, 2002, 2003, 2005, 2006, 2009 Christian Grothoff (and other
contributing authors)
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
@@ -85,7 +85,7 @@
static int
testOpenClose ()
{
- struct GNUNET_IO_Handle *fh;
+ struct GNUNET_DISK_FileHandle *fh;
unsigned long long size;
long avail;
@@ -94,7 +94,7 @@
| GNUNET_DISK_PERM_USER_WRITE);
GNUNET_assert (GNUNET_NO == GNUNET_DISK_handle_invalid (fh));
GNUNET_break (5 == GNUNET_DISK_file_write (fh, "Hello", 5));
- GNUNET_DISK_file_close (&fh);
+ GNUNET_DISK_file_close (fh);
GNUNET_break (GNUNET_OK ==
GNUNET_DISK_file_size (".testfile", &size, GNUNET_NO));
if (size != 5)
@@ -113,11 +113,11 @@
(avail != -1))
if (16 != GNUNET_DISK_file_write (fh, "HelloWorld123456", 16))
{
- GNUNET_DISK_file_close (&fh);
+ GNUNET_DISK_file_close (fh);
GNUNET_break (0 == UNLINK (".testfile"));
return 1;
}
- GNUNET_DISK_file_close (&fh);
+ GNUNET_DISK_file_close (fh);
GNUNET_break (0 == UNLINK (".testfile"));
return 0;
Modified: gnunet/src/util/test_os_load.c
===================================================================
--- gnunet/src/util/test_os_load.c 2009-07-07 20:05:55 UTC (rev 8633)
+++ gnunet/src/util/test_os_load.c 2009-07-07 20:41:19 UTC (rev 8634)
@@ -99,7 +99,7 @@
testdisk ()
{
int ret;
- struct GNUNET_IO_Handle *fh;
+ struct GNUNET_DISK_FileHandle *fh;
char buf[65536];
struct GNUNET_TIME_Absolute start;
struct GNUNET_CONFIGURATION_Handle *cfg;
@@ -145,7 +145,7 @@
if (ret < GNUNET_OS_load_disk_get (cfg))
break;
}
- GNUNET_break (GNUNET_OK == GNUNET_DISK_file_close (&fh));
+ GNUNET_break (GNUNET_OK == GNUNET_DISK_file_close (fh));
GNUNET_break (0 == UNLINK (".loadfile"));
if (ret >= GNUNET_OS_load_disk_get (cfg))
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r8634 - gnunet/src/util,
gnunet <=