Skip to contentSkip to conversation

Make read03 test report PASS upon success

PATCH New Nicolas Joly 2 participants 2 messages Jul 17, 2016 – Jul 18, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Make read03 test report PASS upon success

Hi,

Please find a small patch that make read03 testcase report PASS instead of INFO upon success.

before:

njoly@raya [syscalls/read]> ./read03
read03 0 TINFO : read() succeded in setting errno to EAGAIN

after:

njoly@raya [syscalls/read]> ./read03
read03 1 TPASS : read() succeded in setting errno to EAGAIN

Thanks.

Signature · 13 lines
Nicolas Joly

Cluster & Computing Group
Biology IT Center
Institut Pasteur, Paris.
-------------- next part --------------
commit 48afdb548f57f4afcfdc15373fc742cb23176a46
Author: Nicolas Joly <[email protected]>
Date:   Sun Jul 17 11:53:28 2016 +0200

    syscalls/read03: Make test use TPASS not TINFO upon success.
    
    Signed-off-by: Nicolas Joly <[email protected]>
testcases/kernel/syscalls/read/read03.c +1 -1
index e8b3bbd..28554f5 100644
@@ -90,7 +90,7 @@ int main(int ac, char **av)
 			tst_resm(TFAIL, "read set bad errno, expected "
 				 "EAGAIN, got %d", TEST_ERRNO);
 		} else {
-			tst_resm(TINFO, "read() succeded in setting errno to "
+			tst_resm(TPASS, "read() succeded in setting errno to "
 				 "EAGAIN");
 		}
 	}