-# If argp was compiled without base_name, it will display full program name
- sed '1{s,: [^ ]*/test-argp,: test-argp,;}' | cmp - $TMP
+# 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 -