tests: make use of the test_must_be_empty function
[gitweb.git] / t / t1507-rev-parse-upstream.sh
index 93c77eac45321cb24823431c4d89dc393049edbf..f121890cc24e16948eb185de7c495898cbd4d9f3 100755 (executable)
@@ -138,8 +138,7 @@ test_expect_success 'branch -d other@{u}' '
        git checkout -t -b other master &&
        git branch -d @{u} &&
        git for-each-ref refs/heads/master >actual &&
-       >expect &&
-       test_cmp expect actual
+       test_must_be_empty actual
 '
 
 test_expect_success 'checkout other@{u}' '