]> rtime.felk.cvut.cz Git - frescor/frsh.git/commitdiff
Updated ITEM test
authorMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 7 Nov 2008 14:14:05 +0000 (15:14 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 7 Nov 2008 14:14:05 +0000 (15:14 +0100)
resources/item/Makefile [changed mode: 0755->0644]
resources/item/tests/test_item.c

old mode 100755 (executable)
new mode 100644 (file)
index 510585b..e2fb9a7
@@ -1,4 +1,4 @@
-# Makefile for standalone build (without OMK)\r
+# Makefile for standalone build (without OMK and FRESCOR)\r
 CC=gcc\r
 CFLAGS=-g -std=c99 -pedantic -Wall\r
 \r
index 446d4b287309ffc40f27d561768b2a069cd26e66..8195c6fcb491c23f656a367c7c019608679510e9 100644 (file)
@@ -26,6 +26,11 @@ int main(int argc, char *argv[])
                ret = frsh_contract_init(&contract[i]);
                if (ret) PERROR_AND_EXIT(ret, "frsh_contract_init");
 
+               /* Set resource */
+               ret = frsh_contract_set_resource_and_label(
+                       &contract[i], FRSH_RT_NETWORK, FRSH_NETPF_ITEM, NULL);
+               if (ret) PERROR_AND_EXIT(ret, "Cannot set resource\n");
+
                /* Set nodes we want to receive data from */
                nodes = malloc(sizeof(*nodes));
                if (!nodes) PERROR_AND_EXIT(errno, "malloc");