[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Changes to m4/tests/others.at,v
From: |
Eric Blake |
Subject: |
Changes to m4/tests/others.at,v |
Date: |
Wed, 05 Jul 2006 20:54:17 +0000 |
CVSROOT: /sources/m4
Module name: m4
Changes by: Eric Blake <ericb> 06/07/05 20:54:15
Index: tests/others.at
===================================================================
RCS file: /sources/m4/m4/tests/others.at,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -b -r1.16 -r1.17
--- tests/others.at 1 May 2005 11:10:06 -0000 1.16
+++ tests/others.at 5 Jul 2006 20:54:15 -0000 1.17
@@ -1,5 +1,5 @@
# Hand crafted tests for GNU M4. -*- Autotest -*-
-# Copyright 2001 Free Software Foundation, Inc.
+# Copyright 2001, 2006 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
@@ -293,20 +293,20 @@
AT_SETUP([misc])
[cat >expout <<EOF
+different
-`sed -n '/^root:/{ s/^root:[^:]*://;s/:.*$//;p;q;}' /etc/passwd`
-
+0
EOF]
AT_DATA([[misc.m4]],
-[[divert(-1)
-define(`USER', `root')
-define(`TMP', maketemp(`/tmp/hejXXXXXX'))
-syscmd(`grep "^'USER`:" /etc/passwd | awk -F: "{print \$3}"' > TMP)
-define(`UID', include(TMP))
-syscmd(`rm -f' TMP)
-divert
-UID
+[[dnl This test assumes /tmp is a valid directory name, which is not true
+dnl for native Windows.
+ifdef(`__unix__', , `m4exit(`77')')dnl
+define(`file1', maketemp(`/tmp/m4-fooXXXXXX'))dnl
+define(`file2', maketemp(`/tmp/m4-fooXXXXXX'))dnl
+ifelse(file1, file2, `same', `different')
+syscmd(`rm 'file1 file2)
+sysval
]])
AT_CHECK_M4([misc.m4], 0, expout)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Changes to m4/tests/others.at,v,
Eric Blake <=