diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-07-02 16:01:09 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-07-02 16:01:09 +0000 |
commit | 4864cd9ec24e9c45c64b7e3624eb3c65ac8f171f (patch) | |
tree | 93b3e1c90f18e409422f638b3cce835fe302c748 /src/datacache | |
parent | 2cb2eb3273b07eaa5b2af361561d2af682de6ee6 (diff) | |
download | gnunet-4864cd9ec24e9c45c64b7e3624eb3c65ac8f171f.tar.gz gnunet-4864cd9ec24e9c45c64b7e3624eb3c65ac8f171f.zip |
failing datacache testcase
Diffstat (limited to 'src/datacache')
-rw-r--r-- | src/datacache/test_datacache.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/datacache/test_datacache.c b/src/datacache/test_datacache.c index d323d955a..1b2aee42f 100644 --- a/src/datacache/test_datacache.c +++ b/src/datacache/test_datacache.c | |||
@@ -97,6 +97,19 @@ run (void *cls, | |||
97 | &checkIt, &n)); | 97 | &checkIt, &n)); |
98 | k = n; | 98 | k = n; |
99 | } | 99 | } |
100 | |||
101 | memset(&k, 42, sizeof(GNUNET_HashCode)); | ||
102 | GNUNET_CRYPTO_hash (&k, sizeof (GNUNET_HashCode), &n); | ||
103 | ASSERT (GNUNET_OK == GNUNET_DATACACHE_put (h, | ||
104 | &k, | ||
105 | sizeof (GNUNET_HashCode), | ||
106 | (const char *) &n, | ||
107 | 792, | ||
108 | GNUNET_TIME_absolute_get_forever())); | ||
109 | ASSERT (1 == | ||
110 | GNUNET_DATACACHE_get (h, &k, 792, | ||
111 | &checkIt, &n)); | ||
112 | |||
100 | GNUNET_DATACACHE_destroy (h); | 113 | GNUNET_DATACACHE_destroy (h); |
101 | ASSERT (ok == 0); | 114 | ASSERT (ok == 0); |
102 | return; | 115 | return; |