summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/librechroot-test.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/librechroot-test.sh b/test/librechroot-test.sh
index 9960fdb..667246c 100644
--- a/test/librechroot-test.sh
+++ b/test/librechroot-test.sh
@@ -116,3 +116,14 @@ it_fails_for_unknown_flags() {
empty $tmpdir/stdout
not empty $tmpdir/stderr
}
+
+it_fails_when_syncing_a_copy_with_itself() {
+ require sudo || return 0
+ testsudo timeout 5 librechroot -l root sync || stat=$?
+ case $stat in
+ 0|124|137) # success|timeout+TERM|timeout+KILL
+ false;;
+ *)
+ true;;
+ esac
+}