+2007-01-11 Jim Meyering <jim@meyering.net>
+
+ * tests/misc/test-diag: Work also when libc's error function
+ reports the entire program name ("../../src/test"), rather than
+ just the final component.
+
2007-01-10 Jim Meyering <jim@meyering.net>
Don't use fts_statp uninitialized for "chown -RLh --preserve-root ...".
#!/bin/sh
# Test the diagnostics of "test".
-# Copyright (C) 2006 Free Software Foundation, Inc.
+# Copyright (C) 2006, 2007 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
my @Tests =
(
# In coreutils-5.93, this diagnostic lacked the newline.
- ['o', '-o arg', {ERR => "$prog: extra argument `-o'\n"}, {EXIT => 2}],
+ ['o', '-o arg', {ERR => "test: extra argument `-o'\n"},
+ {ERR_SUBST => 's!^$prog:!test:!'},
+ {EXIT => 2}],
);
my $save_temps = $ENV{DEBUG};