summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2010-12-04 20:32:25 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2010-12-04 20:32:25 +0000
commit453062750c3752d77bbf772d85144003063c1212 (patch)
treecf56e29d64c6871397e4ccc749c0da0b4f27f4f4 /test
parent7737a59d775aeb6dc14868fef6b2c95ed948d17f (diff)
downloadlibcss-453062750c3752d77bbf772d85144003063c1212.tar.gz
libcss-453062750c3752d77bbf772d85144003063c1212.tar.bz2
Remove Aliases file nonsense
svn path=/trunk/libcss/; revision=10983
Diffstat (limited to 'test')
-rw-r--r--test/csdetect.c8
-rw-r--r--test/css21.c10
-rw-r--r--test/lex-auto.c8
-rw-r--r--test/lex.c8
-rw-r--r--test/number.c8
-rw-r--r--test/parse-auto.c8
-rw-r--r--test/parse.c8
-rw-r--r--test/parse2-auto.c8
-rw-r--r--test/select-auto.c6
9 files changed, 36 insertions, 36 deletions
diff --git a/test/csdetect.c b/test/csdetect.c
index d12d6cf..aa72ce2 100644
--- a/test/csdetect.c
+++ b/test/csdetect.c
@@ -29,12 +29,12 @@ int main(int argc, char **argv)
{
line_ctx ctx;
- if (argc != 3) {
- printf("Usage: %s <aliases_file> <filename>\n", argv[0]);
+ if (argc != 2) {
+ printf("Usage: %s <filename>\n", argv[0]);
return 1;
}
- ctx.buflen = parse_filesize(argv[2]);
+ ctx.buflen = parse_filesize(argv[1]);
if (ctx.buflen == 0)
return 1;
@@ -51,7 +51,7 @@ int main(int argc, char **argv)
ctx.indata = false;
ctx.inenc = false;
- assert(parse_testfile(argv[2], handle_line, &ctx) == true);
+ assert(parse_testfile(argv[1], handle_line, &ctx) == true);
/* and run final test */
if (ctx.bufused > 0 && ctx.buf[ctx.bufused - 1] == '\n')
diff --git a/test/css21.c b/test/css21.c
index 774c58a..5d6bb04 100644
--- a/test/css21.c
+++ b/test/css21.c
@@ -42,20 +42,20 @@ int main(int argc, char **argv)
css_error error;
int count;
- if (argc != 3) {
- printf("Usage: %s <aliases_file> <filename>\n", argv[0]);
+ if (argc != 2) {
+ printf("Usage: %s <filename>\n", argv[0]);
return 1;
}
for (count = 0; count < ITERATIONS; count++) {
- assert(css_stylesheet_create(CSS_LEVEL_21, "UTF-8", argv[2],
+ assert(css_stylesheet_create(CSS_LEVEL_21, "UTF-8", argv[1],
NULL, false, false, myrealloc, NULL,
resolve_url, NULL, &sheet) == CSS_OK);
- fp = fopen(argv[2], "rb");
+ fp = fopen(argv[1], "rb");
if (fp == NULL) {
- printf("Failed opening %s\n", argv[2]);
+ printf("Failed opening %s\n", argv[1]);
return 1;
}
diff --git a/test/lex-auto.c b/test/lex-auto.c
index 08d84c6..d1378fe 100644
--- a/test/lex-auto.c
+++ b/test/lex-auto.c
@@ -53,12 +53,12 @@ int main(int argc, char **argv)
{
line_ctx ctx;
- if (argc != 3) {
- printf("Usage: %s <aliases_file> <filename>\n", argv[0]);
+ if (argc != 2) {
+ printf("Usage: %s <filename>\n", argv[0]);
return 1;
}
- ctx.buflen = parse_filesize(argv[2]);
+ ctx.buflen = parse_filesize(argv[1]);
if (ctx.buflen == 0)
return 1;
@@ -77,7 +77,7 @@ int main(int argc, char **argv)
ctx.indata = false;
ctx.inexp = false;
- assert(parse_testfile(argv[2], handle_line, &ctx) == true);
+ assert(parse_testfile(argv[1], handle_line, &ctx) == true);
/* and run final test */
if (ctx.bufused > 0)
diff --git a/test/lex.c b/test/lex.c
index c48feeb..f8b369b 100644
--- a/test/lex.c
+++ b/test/lex.c
@@ -130,8 +130,8 @@ int main(int argc, char **argv)
css_error error;
int i;
- if (argc != 3) {
- printf("Usage: %s <aliases_file> <filename>\n", argv[0]);
+ if (argc != 2) {
+ printf("Usage: %s <filename>\n", argv[0]);
return 1;
}
@@ -144,9 +144,9 @@ int main(int argc, char **argv)
assert(css_lexer_create(stream, myrealloc, NULL, &lexer) ==
CSS_OK);
- fp = fopen(argv[2], "rb");
+ fp = fopen(argv[1], "rb");
if (fp == NULL) {
- printf("Failed opening %s\n", argv[2]);
+ printf("Failed opening %s\n", argv[1]);
return 1;
}
diff --git a/test/number.c b/test/number.c
index 392d9ef..05c3125 100644
--- a/test/number.c
+++ b/test/number.c
@@ -29,12 +29,12 @@ int main(int argc, char **argv)
{
line_ctx ctx;
- if (argc != 3) {
- printf("Usage: %s <aliases_file> <filename>\n", argv[0]);
+ if (argc != 2) {
+ printf("Usage: %s <filename>\n", argv[0]);
return 1;
}
- ctx.buflen = parse_filesize(argv[2]);
+ ctx.buflen = parse_filesize(argv[1]);
if (ctx.buflen == 0)
return 1;
@@ -51,7 +51,7 @@ int main(int argc, char **argv)
ctx.indata = false;
ctx.inexp = false;
- assert(parse_testfile(argv[2], handle_line, &ctx) == true);
+ assert(parse_testfile(argv[1], handle_line, &ctx) == true);
/* and run final test */
if (ctx.bufused > 0)
diff --git a/test/parse-auto.c b/test/parse-auto.c
index 2196a94..e050a08 100644
--- a/test/parse-auto.c
+++ b/test/parse-auto.c
@@ -92,12 +92,12 @@ int main(int argc, char **argv)
{
line_ctx ctx;
- if (argc != 3) {
- printf("Usage: %s <aliases_file> <filename>\n", argv[0]);
+ if (argc != 2) {
+ printf("Usage: %s <filename>\n", argv[0]);
return 1;
}
- ctx.buflen = parse_filesize(argv[2]);
+ ctx.buflen = parse_filesize(argv[1]);
if (ctx.buflen == 0)
return 1;
@@ -117,7 +117,7 @@ int main(int argc, char **argv)
ctx.inerrors = false;
ctx.inexp = false;
- assert(parse_testfile(argv[2], handle_line, &ctx) == true);
+ assert(parse_testfile(argv[1], handle_line, &ctx) == true);
/* and run final test */
if (ctx.bufused > 0)
diff --git a/test/parse.c b/test/parse.c
index 03a9703..efb555e 100644
--- a/test/parse.c
+++ b/test/parse.c
@@ -84,8 +84,8 @@ int main(int argc, char **argv)
css_error error;
int i;
- if (argc != 3) {
- printf("Usage: %s <aliases_file> <filename>\n", argv[0]);
+ if (argc != 2) {
+ printf("Usage: %s <filename>\n", argv[0]);
return 1;
}
@@ -98,9 +98,9 @@ int main(int argc, char **argv)
assert(css_parser_setopt(parser, CSS_PARSER_EVENT_HANDLER,
&params) == CSS_OK);
- fp = fopen(argv[2], "rb");
+ fp = fopen(argv[1], "rb");
if (fp == NULL) {
- printf("Failed opening %s\n", argv[2]);
+ printf("Failed opening %s\n", argv[1]);
return 1;
}
diff --git a/test/parse2-auto.c b/test/parse2-auto.c
index e64b169..f649fd4 100644
--- a/test/parse2-auto.c
+++ b/test/parse2-auto.c
@@ -65,12 +65,12 @@ int main(int argc, char **argv)
{
line_ctx ctx;
- if (argc != 3) {
- printf("Usage: %s <aliases_file> <filename>\n", argv[0]);
+ if (argc != 2) {
+ printf("Usage: %s <filename>\n", argv[0]);
return 1;
}
- ctx.buflen = parse_filesize(argv[2]);
+ ctx.buflen = parse_filesize(argv[1]);
if (ctx.buflen == 0)
return 1;
@@ -90,7 +90,7 @@ int main(int argc, char **argv)
ctx.inerrors = false;
ctx.inexp = false;
- assert(parse_testfile(argv[2], handle_line, &ctx) == true);
+ assert(parse_testfile(argv[1], handle_line, &ctx) == true);
/* and run final test */
if (ctx.bufused > 0)
diff --git a/test/select-auto.c b/test/select-auto.c
index ff9de09..039ea02 100644
--- a/test/select-auto.c
+++ b/test/select-auto.c
@@ -190,8 +190,8 @@ int main(int argc, char **argv)
{
line_ctx ctx;
- if (argc != 3) {
- printf("Usage: %s <aliases_file> <filename>\n", argv[0]);
+ if (argc != 2) {
+ printf("Usage: %s <filename>\n", argv[0]);
return 1;
}
@@ -204,7 +204,7 @@ int main(int argc, char **argv)
lwc_intern_string("class", SLEN("class"), &ctx.attr_class);
lwc_intern_string("id", SLEN("id"), &ctx.attr_id);
- assert(parse_testfile(argv[2], handle_line, &ctx) == true);
+ assert(parse_testfile(argv[1], handle_line, &ctx) == true);
/* and run final test */
if (ctx.tree != NULL)