+2009-01-18 Simon Josefsson <simon@josefsson.org>
+
+ * modules/filenamecat-tests (Depends-on): Add progname.
+ * modules/fstrcmp-tests (Depends-on): Likewise.
+
+ * tests/test-filenamecat.c: Use progname module, to avoid link
+ errors on non-glibc systems.
+ * tests/test-fstrcmp.c: Likewise.
+
2009-01-19 Daniel P. Berrange <berrange@redhat.com>
gettimeofday: avoid warning: nested extern declaration of 'localtime'
Depends-on:
stdbool
+progname
configure.ac:
Depends-on:
stdbool
+progname
configure.ac:
/* Test of concatenation of two arbitrary file names.
- Copyright (C) 1996-2007 Free Software Foundation, Inc.
+ Copyright (C) 1996-2007, 2009 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <stdlib.h>
#include <string.h>
+#include "progname.h"
+
int
-main ()
+main (int argc, char *argv[])
{
static char const *const tests[][3] =
{
};
unsigned int i;
bool fail = false;
+
+ set_program_name (argv[0]);
+
for (i = 0; i < sizeof tests / sizeof tests[0]; i++)
{
char *base_in_result;
/* Test of fuzzy string comparison.
- Copyright (C) 2007-2008 Free Software Foundation, Inc.
+ Copyright (C) 2007-2009 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <stdio.h>
#include <stdlib.h>
+#include "progname.h"
+
#define ASSERT(expr) \
do \
{ \
}
int
-main ()
+main (int argc, char *argv[])
{
+ set_program_name (argv[0]);
+
ASSERT (check_fstrcmp ("Langstrumpf", "Langstrumpf", 1.0));
ASSERT (check_fstrcmp ("Levenshtein", "Levenstein", 20./21.));
ASSERT (check_fstrcmp ("Levenstein", "Levenshtein", 20./21.));