]> diplodocus.org Git - nmh/blobdiff - test/ali/test-ali
Replace getcpy() with mh_xstrdup() where the string isn't NULL.
[nmh] / test / ali / test-ali
index b24ec3e4e8754e6a506ba584abe87e0c9e921bfa..41ddb956b16b70df0ad8d1d72ee263bca8dc0f99 100755 (executable)
@@ -30,15 +30,16 @@ cat >$expected <<EOF
 Usage: ali [switches] aliases ...
   switches are:
   -alias aliasfile
+  -noalias
   -[no]list
-  -[no]normalize
   -[no]user
   -version
   -help
 EOF
 
-ali -help >$actual 2>&1
-check $expected $actual
+#### Skip nmh intro text.
+ali -help | sed '/^$/,$d' >"$actual" 2>&1
+check "$expected" "$actual"
 
 # check -version
 case `ali -v` in
@@ -53,8 +54,6 @@ run_test 'ali -nonexistent' 'ali: -nonexistent unknown'
 # check with no arguments and no AliasFile profile component
 run_test 'ali' ''
 
-exit # ???? Temporary, to isolate failure on Solaris.
-
 # check with nonexistent alias file
 run_test 'ali -alias nonexistent' \
          "ali: aliasing error in nonexistent - unable to read 'nonexistent'"