--- a/scripts/test/ls.test	2014-09-30 11:21:37.665776003 +0530
+++ b/scripts/test/ls.test	2014-09-30 11:20:05.889776004 +0530
@@ -22,13 +22,13 @@
 testing "ls with wild char - long listing" "$IN && ls -1 file*; $OUT" "file1.txt\nfile2.txt\n" "" ""
 testing "ls with -p" "$IN && ls -p; $OUT" "dir1/\ndir2/\nfile1.txt\nfile2.txt\n" "" ""
 testing "ls with -a" "$IN && ls -a; $OUT" \
-        ".\n..\ndir1\ndir2\nfile1.txt\nfile2.txt\n.hfile1\n" "" ""
+        ".\n..\n.hfile1\ndir1\ndir2\nfile1.txt\nfile2.txt\n"  "" ""
 testing "ls with -A" "$IN && ls -A; $OUT" \
-        "dir1\ndir2\nfile1.txt\nfile2.txt\n.hfile1\n" "" ""
+        ".hfile1\ndir1\ndir2\nfile1.txt\nfile2.txt\n" "" ""
 testing "ls with -d" "$IN && ls -d; $OUT" ".\n" "" ""
 testing "ls with wild char and -d *" "$IN && ls -d *; $OUT" "dir1\ndir2\nfile1.txt\nfile2.txt\n" "" ""
 testing "ls with -k" "$IN && ls -k; $OUT" "dir1\ndir2\nfile1.txt\nfile2.txt\n" "" ""
-testing "ls with -m" "$IN && ls -m; $OUT" "dir1, dir2, file1.txt, file2.txt\n" "" ""
+testing "ls with -m" "$IN && ls -m; $OUT" "dir1,\ndir2,\nfile1.txt,\nfile2.txt\n" "" ""
 testing "ls with -F" "$IN && ls -F; $OUT" "dir1/\ndir2/\nfile1.txt\nfile2.txt\n" "" ""
 testing "ls with -dk *" "$IN && ls -dk *; $OUT" "dir1\ndir2\nfile1.txt\nfile2.txt\n" "" ""
 
