OSDN Git Service

Fix path check
[lha/lha.git] / tests / lha-test2
index af885d3..ee8928b 100644 (file)
@@ -70,7 +70,7 @@ $lha pq test-tmp-m6.lzh | diff test-tmp-abc -
                                                        check $? $LINENO
 $lha pq test-tmp-m7.lzh | diff test-tmp-abc -
                                                        check $? $LINENO
-# 0 byte files should be frozen with the -lh0- method.
+# empty file should be frozen with the -lh0- method.
 touch test-tmp-0byte
                                                        check $? $LINENO
 $lha c test-tmp-0byte.lzh test-tmp-0byte
@@ -79,3 +79,12 @@ $lha v test-tmp-0byte.lzh
                                                        check $? $LINENO
 $lha v test-tmp-0byte.lzh | grep lh0
                                                        check $? $LINENO
+# uncompressed file should be frozen with the -lh0- method.
+echo foobar > test-tmp-small
+                                                       check $? $LINENO
+$lha c test-tmp-small.lzh test-tmp-small
+                                                       check $? $LINENO
+$lha v test-tmp-small.lzh
+                                                       check $? $LINENO
+$lha v test-tmp-small.lzh | grep lh0
+                                                       check $? $LINENO