[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
argp on mingw
From: |
Bruno Haible |
Subject: |
argp on mingw |
Date: |
Wed, 2 May 2007 00:22:38 +0200 |
User-agent: |
KMail/1.5.4 |
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 <address@hidden>
* 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 -
}
- argp on mingw,
Bruno Haible <=