#!/bin/sh
# Copyright 2010 Nokia Corporation
# Written by Alexander Shishkin
-# Licensed under GPL v2 or later, see file LICENSE for details
+# Licensed under GPLv2 or later, see file LICENSE in this source tree.
. ./testing.sh
"$(md5sum <README)\n" \
"" \
""
-rm test.a
+rm test.a 2>/dev/null
testing "ar replaces things in archives" \
"echo 'blah!' >file1 && echo 'blast!' >file2 && ar cr test.a README file1 file2 && mv file2 file1 && ar cr test.a file1 && ar p test.a file1" \