summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/libopkg_test.c4
-rw-r--r--tests/opkg_active_list_test.c6
-rw-r--r--tests/opkg_extract_test.c10
-rw-r--r--tests/opkg_hash_test.c4
4 files changed, 12 insertions, 12 deletions
diff --git a/tests/libopkg_test.c b/tests/libopkg_test.c
index 4d82a67..dbe1e7e 100644
--- a/tests/libopkg_test.c
+++ b/tests/libopkg_test.c
@@ -151,7 +151,7 @@ main (int argc, char **argv)
}
setenv("OFFLINE_ROOT", "/tmp", 0);
-
+
if (opkg_new ()) {
printf("opkg_new() failed. This sucks.\n");
print_error_list();
@@ -223,7 +223,7 @@ main (int argc, char **argv)
}
}
break;
-
+
case 'r':
if (argv[1][1] == 'e')
{
diff --git a/tests/opkg_active_list_test.c b/tests/opkg_active_list_test.c
index 4792eae..b6af3b3 100644
--- a/tests/opkg_active_list_test.c
+++ b/tests/opkg_active_list_test.c
@@ -29,7 +29,7 @@ struct active_test {
struct active_test *active_test_new(char *str) {
struct active_test *ans = (struct active_test *)calloc(1, sizeof(struct active_test));
ans->str = str;
- active_list_init(&ans->list);
+ active_list_init(&ans->list);
return ans;
}
void active_test_add(struct active_list *head, struct active_test *node) {
@@ -47,7 +47,7 @@ void active_test_add_depend(struct active_test *A, struct active_test *B) {
|__ G ---H ---I---J
|_M |_O
-Then the sequence will be
+Then the sequence will be
+: G M H I O J A B K N L C D E F
-: F E D C L N K B A J O I H M G
*/
@@ -90,7 +90,7 @@ void make_list(struct active_list *head) {
active_test_add_depend(A, J);
active_test_add_depend(J, O);
active_test_add_depend(C, K);
- active_test_add_depend(C, L);
+ active_test_add_depend(C, L);
active_test_add_depend(L, N);
}
diff --git a/tests/opkg_extract_test.c b/tests/opkg_extract_test.c
index 582ea71..9754691 100644
--- a/tests/opkg_extract_test.c
+++ b/tests/opkg_extract_test.c
@@ -3,7 +3,7 @@
#include <libbb/libbb.h>
/*
- * build thus:
+ * build thus:
* gcc -o opkg_extract_test opkg_extract_test.c -I./busybox-0.60.2/libbb -L./busybox-0.60.2 -lbb
*
@@ -14,7 +14,7 @@ int main(int argc, char * argv[])
{
/*
* see libbb.h and let your imagination run wild
- * or, set the last item below to extract_one_to_buffer, and you get the control file in
+ * or, set the last item below to extract_one_to_buffer, and you get the control file in
* "returned"
* or, set the last one to extract_all_to_fs, and, well, guess what happens
*/
@@ -23,12 +23,12 @@ int main(int argc, char * argv[])
enum extract_functions_e dowhat = extract_control_tar_gz | extract_all_to_fs | extract_preserve_date;
char * returned;
char * filename;
-
+
if(argc < 2){
fprintf(stderr, "syntax: %s <opkg file> [<file_to_extract>]\n", argv[0]);
exit(0);
}
-
+
if (argc < 3){
filename=NULL;
} else {
@@ -36,7 +36,7 @@ int main(int argc, char * argv[])
}
returned = deb_extract(argv[1], stdout, dowhat, NULL, filename);
-
+
if(returned)
fprintf(stderr, "returned %s\n", returned);
else
diff --git a/tests/opkg_hash_test.c b/tests/opkg_hash_test.c
index 7d4ea96..de1d82c 100644
--- a/tests/opkg_hash_test.c
+++ b/tests/opkg_hash_test.c
@@ -66,9 +66,9 @@ int main(int argc, char *argv[])
fprintf(stderr, "%s version %s\n", dep_vec->pkgs[k]->name, dep_vec->pkgs[k]->version);
}
}
-
+
fputs("", stdout);
-
+
}
}
}