1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-14 14:01:48 +03:00
Commit Graph

3 Commits

Author SHA1 Message Date
Jim Meyering
6d237fd01d getprogname-tests: don't depend on assert-h
* modules/getprogname-tests (Depends-on): Remove assert-h.
It was not needed, and in fact would cause build failure for
coreutils on some systems.  Reported by Assaf Gordon in https:
//lists.gnu.org/archive/html/coreutils/2016-09/msg00016.html
2016-09-09 15:46:53 -07:00
Jim Meyering
5e537e5f9b getprogname-tests: work also when EXEEXT is nonempty
* modules/getprogname-tests (Makefile.am): Define EXEEXT.
* tests/test-getprogname.c (main): Use it.
Suggested by Gisle Vanem.
2016-09-08 13:08:17 -07:00
Jim Meyering
320679aaa1 getprogname: port to systems with __argv (mingw, msvc)
* lib/getprogname.c (getprogname): Include "dirname.h" and use
last_component: more general than open coding it with hard-coded "/".
* lib/getprogname.h (getprogname): Prefer "char const *" consistently.
* modules/getprogname (Depends-on): Add dirname-lgpl.
(configure.ac): Check for __argv in <stdlib.h>.
* modules/getprogname-tests: New file.
* tests/test-getprogname.c: New file.
Suggested by Gisle Vanem in
https://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00014.html
2016-09-07 08:29:36 -07:00