瀏覽代碼

Inject arbitrary fails into xcosi

Alois Mahdal 7 年之前
父節點
當前提交
652895e5fe
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      src/xcosi/test

+ 3
- 0
src/xcosi/test 查看文件

16
 xcase__test() {
16
 xcase__test() {
17
     jat__cmd test -s Foo
17
     jat__cmd test -s Foo
18
     jat__cmd test -s Bar
18
     jat__cmd test -s Bar
19
+    test "$Foo:$Bar" == "f1:b2" && jat__cmd false
20
+    test "$Foo:$Bar" == "f0:b0" && jat__log_warning heya
21
+    test "$Foo:$Bar" == "f1:b1" && jat__log_error kaboom
19
 }
22
 }
20
 
23
 
21
 xcase__run -v
24
 xcase__run -v