diff options
author | Jim Meyering <meyering@redhat.com> | 2010-01-29 15:58:50 +0100 |
---|---|---|
committer | Arjun Roy <arroy@redhat.com> | 2010-02-03 12:02:09 -0800 |
commit | 28f81f3ab28fe98d5eb40d992813952eacbb58a1 (patch) | |
tree | 9230c25c4fda53aff9a37a0c14ff59986551a127 /test | |
parent | 0215e59935b2413c29cff3f36de89527e366f305 (diff) |
include <string.h> for decl of strcmp, in test programs
Diffstat (limited to 'test')
-rw-r--r-- | test/test-filter.c | 1 | ||||
-rw-r--r-- | test/test-get_devices.c | 1 | ||||
-rw-r--r-- | test/test-get_os.c | 1 | ||||
-rw-r--r-- | test/test-manipulate_devices.c | 3 | ||||
-rw-r--r-- | test/test-manipulate_hypervisor.c | 1 | ||||
-rw-r--r-- | test/test-manipulate_library.c | 1 | ||||
-rw-r--r-- | test/test-manipulate_os.c | 5 | ||||
-rw-r--r-- | test/test-set_hypervisor.c | 1 |
8 files changed, 11 insertions, 3 deletions
diff --git a/test/test-filter.c b/test/test-filter.c index 3884fe3..dc3eaee 100644 --- a/test/test-filter.c +++ b/test/test-filter.c @@ -1,5 +1,6 @@ #include <stdio.h> #include <stdlib.h> +#include <string.h> #include <errno.h> #include <assert.h> #include <libosinfo.h> diff --git a/test/test-get_devices.c b/test/test-get_devices.c index 807004f..ac00ee6 100644 --- a/test/test-get_devices.c +++ b/test/test-get_devices.c @@ -1,5 +1,6 @@ #include <stdio.h> #include <stdlib.h> +#include <string.h> #include <errno.h> #include <assert.h> #include <libosinfo.h> diff --git a/test/test-get_os.c b/test/test-get_os.c index fc1a011..83d6acd 100644 --- a/test/test-get_os.c +++ b/test/test-get_os.c @@ -1,5 +1,6 @@ #include <stdio.h> #include <stdlib.h> +#include <string.h> #include <errno.h> #include <assert.h> #include <libosinfo.h> diff --git a/test/test-manipulate_devices.c b/test/test-manipulate_devices.c index 12d59c4..3b19b0c 100644 --- a/test/test-manipulate_devices.c +++ b/test/test-manipulate_devices.c @@ -1,5 +1,6 @@ #include <stdio.h> #include <stdlib.h> +#include <string.h> #include <errno.h> #include <assert.h> #include <libosinfo.h> @@ -132,4 +133,4 @@ int main(int argc, char** argv) printf("test-manipulate_devices succeeded.\n"); return 0; -}
\ No newline at end of file +} diff --git a/test/test-manipulate_hypervisor.c b/test/test-manipulate_hypervisor.c index 7869b00..23c11aa 100644 --- a/test/test-manipulate_hypervisor.c +++ b/test/test-manipulate_hypervisor.c @@ -1,5 +1,6 @@ #include <stdio.h> #include <stdlib.h> +#include <string.h> #include <errno.h> #include <assert.h> #include <libosinfo.h> diff --git a/test/test-manipulate_library.c b/test/test-manipulate_library.c index 3e78b23..e588aba 100644 --- a/test/test-manipulate_library.c +++ b/test/test-manipulate_library.c @@ -1,5 +1,6 @@ #include <stdio.h> #include <stdlib.h> +#include <string.h> #include <errno.h> #include <assert.h> #include <libosinfo.h> diff --git a/test/test-manipulate_os.c b/test/test-manipulate_os.c index 7678a75..5bcbc69 100644 --- a/test/test-manipulate_os.c +++ b/test/test-manipulate_os.c @@ -1,5 +1,6 @@ #include <stdio.h> #include <stdlib.h> +#include <string.h> #include <errno.h> #include <assert.h> #include <libosinfo.h> @@ -99,7 +100,7 @@ int main(int argc, char** argv) assert ( len == 3 ); assert ( unique_values != NULL ); for (i = 0; i < len; i++) { - assert ( + assert ( strcmp("Fedora Project", unique_values[i]) == 0 || strcmp("OpenSuse Project", unique_values[i]) == 0 || strcmp("Red Hat", unique_values[i]) == 0 @@ -164,4 +165,4 @@ int main(int argc, char** argv) printf("test-manipulate_os succeeded.\n"); return 0; -}
\ No newline at end of file +} diff --git a/test/test-set_hypervisor.c b/test/test-set_hypervisor.c index a831413..d7fec9a 100644 --- a/test/test-set_hypervisor.c +++ b/test/test-set_hypervisor.c @@ -1,5 +1,6 @@ #include <stdio.h> #include <stdlib.h> +#include <string.h> #include <errno.h> #include <assert.h> #include <libosinfo.h> |