Browse Source

[master] use install-sh (with -m) instead of cp to make sure writable test
DB file has write permission. hopefully it should fix the distcheck failure
on the freebsd8 buildbot.

JINMEI Tatuya 13 years ago
parent
commit
8d1942a3b7
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/lib/datasrc/tests/testdata/Makefile.am

+ 2 - 1
src/lib/datasrc/tests/testdata/Makefile.am

@@ -1,5 +1,6 @@
 CLEANFILES = *.copied
 CLEANFILES = *.copied
 BUILT_SOURCES = rwtest.sqlite3.copied
 BUILT_SOURCES = rwtest.sqlite3.copied
 
 
+# We use install-sh with the -m option to make sure it's writable
 rwtest.sqlite3.copied: $(srcdir)/rwtest.sqlite3
 rwtest.sqlite3.copied: $(srcdir)/rwtest.sqlite3
-	cp $(srcdir)/rwtest.sqlite3 $@
+	$(top_srcdir)/install-sh -m 644 $(srcdir)/rwtest.sqlite3 $@