[PATCH 13/15] add test case for space within command line

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx>
---
 validation/preprocessor/arg-cli-ko.c | 16 ++++++++++++++++
 validation/preprocessor/arg-cli-ok.c | 16 ++++++++++++++++
 2 files changed, 32 insertions(+)
 create mode 100644 validation/preprocessor/arg-cli-ko.c
 create mode 100644 validation/preprocessor/arg-cli-ok.c

diff --git a/validation/preprocessor/arg-cli-ko.c b/validation/preprocessor/arg-cli-ko.c
new file mode 100644
index 000000000..d4e2803c0
--- /dev/null
+++ b/validation/preprocessor/arg-cli-ko.c
@@ -0,0 +1,16 @@
+M1(0)
+M2(0,1)
+
+/*
+ * check-name: arg on command line
+ * check-command: sparse -E '-DM1(X)=X' '-DM2(X, Y)=B Y S X T' $file
+ *
+ * check-description: this is a failure of the testsuite.
+ * check-known-to-fail
+ *
+ * check-output-start
+
+0
+B 1 S 0 T
+ * check-output-end
+ */
diff --git a/validation/preprocessor/arg-cli-ok.c b/validation/preprocessor/arg-cli-ok.c
new file mode 100644
index 000000000..6a7f2c7e2
--- /dev/null
+++ b/validation/preprocessor/arg-cli-ok.c
@@ -0,0 +1,16 @@
+M1(0)
+M2(0,1)
+
+/*
+ * check-name: arg on command line
+ * check-command: sparse -E '-DM1(X)=X' '-DM2(X,Y)=B Y S X T' $file
+ *
+ * check-description: this is a failure of the testsuite.
+ * check-known-to-fail
+ *
+ * check-output-start
+
+0
+B 1 S 0 T
+ * check-output-end
+ */
-- 
2.14.0

--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux