The test-argp-2.sh test fails on mingw, because the program name comes out
as "test-argp.exe", whereas the test expects "test-argp". This fixes it. OK
to commit?
2007-05-01 Bruno Haible <[EMAIL PROTECTED]>
* tests/test-argp-2.sh (func_compare): Drop .exe suffix.
*** tests/test-argp-2.sh 30 Apr 2007 08:26:11 -0000 1.5
--- tests/test-argp-2.sh 1 May 2007 22:20:54 -0000
***************
*** 23,31 ****
ERR=0
func_compare() {
! # If argp was compiled without base_name, it will display full program name
sed '1{
s,: [^ ]*/test-argp,: test-argp,
}' | diff -c $TMP -
}
--- 23,33 ----
ERR=0
func_compare() {
! # If argp was compiled without base_name, it will display full program name.
! # If run on mingw, it will display the program name with a .exe suffix.
sed '1{
s,: [^ ]*/test-argp,: test-argp,
+ s,: test-argp\.exe,: test-argp,
}' | diff -c $TMP -
}