From f044ccf7025137ec541e165e7988772f27080a23 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 4 May 2004 13:56:30 +0000 Subject: * 1000th revision! * A test to verify that locking of output paths (caused by concurrent invocations of Nix) works correctly. --- tests/locking.builder.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/locking.builder.sh (limited to 'tests/locking.builder.sh') diff --git a/tests/locking.builder.sh b/tests/locking.builder.sh new file mode 100644 index 000000000000..5c3dfdafbc59 --- /dev/null +++ b/tests/locking.builder.sh @@ -0,0 +1,9 @@ +export PATH=/bin:/usr/bin:$PATH + +sleep 3 + +touch $out +# Use `>>'; without proper locking this will cause text duplication. +echo -n $(cat $inputs)$text >> $out + +sleep 2 \ No newline at end of file -- cgit 1.4.1