#! /bin/sh
-# Copyright (C) 2004-2012 Free Software Foundation, Inc.
+# Copyright (C) 2004-2013 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
# Make sure 'compile' preserves spaces in its arguments.
am_create_testdir=empty
-. ./defs || Exit 1
+. test-init.sh
get_shell_script compile
./compile touch a.o -- -o 'a c.o' a.c
test -f 'a c.o'
-test ! -f ./-o
-test ! -f a.o
+test ! -e ./-o
+test ! -e a.o
test -f a.c
# Make sure 'compile' works for .obj too.
./compile touch a.obj -- -o ac.obj a.c
-test ! -f a.obj
+test ! -e a.obj
test ac.obj
: