]> granicus.if.org Git - check/commitdiff
change argument for 'close' from 2 -> 1
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Mon, 27 Jan 2014 03:18:24 +0000 (03:18 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Mon, 27 Jan 2014 03:18:24 +0000 (03:18 +0000)
The close variable determines if the file will be closed
after logging completes. It is used as a flag, and only really
needs to be '0' or '1'. A value of '2' is just confusing.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1075 64e312b2-a51f-0410-8e61-82d0ca0eb02a

src/check_log.c

index 520d07d807e2214eae6b5b34dad848122871e844..c9523c7195068b8241b48035314bc1789563aa9b 100644 (file)
@@ -463,11 +463,11 @@ void srunner_init_logging (SRunner *sr, enum print_output print_mode)
   }
   f = srunner_open_xmlfile (sr);
   if (f) {
-    srunner_register_lfun (sr, f, 2, xml_lfun, print_mode);
+    srunner_register_lfun (sr, f, 1, xml_lfun, print_mode);
   }
   f = srunner_open_tapfile (sr);
   if (f) {
-    srunner_register_lfun (sr, f, 2, tap_lfun, print_mode);
+    srunner_register_lfun (sr, f, 1, tap_lfun, print_mode);
   }
   srunner_send_evt (sr, NULL, CLINITLOG_SR);
 }